AdvancedScaleOverlay - geosolutions-it/MapStore GitHub Wiki
This widget creates a panel for showing an advanced ScaleLine control with:
- ComboBox for selecting the map scale.
- Mouse Position (using the OpenLayers Control)
- Scale Bar (using the OpenLayers Control)
- ComboBox for selecting scale bar units
Likewise the default ScaleOverlay widget in MapStore you can enable multiple units for the scale bar using the configuration below in your configuration file:
"scaleOverlayUnits":{
"bottomOutUnits":"nmi",
"bottomInUnits":"nmi",
"topInUnits":"m",
"topOutUnits":"km"
}
By default the standard ScaleOverlay tool in MapStore is used, so in order to enable the 'AdvancedScaleOverlay' you have simply to add the following configuration property to the configuration file:
"scaleOverlayMode": "advanced",