Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

AdvancedScaleOverlay

Gnafu edited this page May 22, 2014 · 2 revisions

This widget creates a panel for showing an advanced ScaleLine control with:

  1. ComboBox for selecting the map scale.
  2. Mouse Position (using the OpenLayers Control)
  3. Scale Bar (using the OpenLayers Control)
  4. 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",
Clone this wiki locally