HSLayres.Control.ProjectionSwitcherΒΆ

Note

The projection switcher is still in prototype phase.

HSLayres.Control.ProjectionSwitcher enables you to switch map project projection on-the-fly.

For this, HSLayers introduces new attribute OpenLayers.Layer.projections which are lists of projections supported by the map and each layer. If the layer does not support projection, in which the map was switched, it will not be displayed.

var switcher = new HSLayers.Control.ProjectionSwitcher({
                        div: this.mapViewer.mapPanel.projectionSwitcherContainer.container.dom,
                        userProjections: ["epsg:4326","epsg:3035"]});

map.addControl(switcher);

Previous topic

HSLayers.Control.Measure

Next topic

HSLayers.Control.Query

This Page