HSLayers.ControlΒΆ

HSLayers.Control is a namespace for map controls, derived from OpenLayers.Control, but being distributed along with HSLayers source code. They are usually adding some additional functionality to the map.

To work with them is usually the same, as with other OpenLayer.Controls, you have to create it and add to he map. Usually, target div has to be specified:

var layerswitcher = new HSLayers.Control.PanZoomBar({
                        dummyScales: [
                                {scale:1000000,label:"States"},
                                {scale: 200000,label:"Cities"},
                                {scale: 5000,label:"Detail"},
                                {scale: 500,label:"Cadaster"}
                            ]
});

Let’s have a look at some controls more detaily.

Main Menu


Previous topic

HSLayers.MapPortal

Next topic

HSLayers.Control.BoxLayerSwitcher

This Page