Map Interface configuration - configuration and parameters
With WisRoGIS you can enjoy a simple and efficient map. There are a number of parameters that can be set so that the map will display or not several controls:
map size, map overview (bird view);
navigation zoom/pan controls, zoom slider;
rectangle zoom in/pan controls;
layer attribution and map permalink;
interactive layer list (layer switcher);
scale and coordinate display;
zoom levels and map center coordinates;
Each of the options can be set for all instances of the WISroGIS plugin (plugin configuration page) or individually, for each instance, adding the corresponding parameter(s) in the plugin code:
Note: the Mouse Position, Permalink and Attribution parameters are set to 1 (visible) in the plugin configuration page.
The table below shows the parameters' name (configuration page), the parameter name (plugin code), description, and values:
Width
width
Map's width, expressed in pixels (300px) or percents (95%)
width='400px'
Default value: 100%
Height
height
Map's height, expressed in pixels (300px) or percents (95%)
height='300px'
Default value: 400px
Center latitude
center_lat
Latitude for the center of the map
center_lat='49.1127'
Default value: none
Center latitude
center_lon
Latitude for the center of the map
center_lon='4.69577'
Default value: none
Pan/Zoom Navigation Style
panzoom_style
Set the Pan/Zoom Navigation style: 0 = Default Zoom Control; 1 = Zoom Slider Control
panzoom_style=0
Default value: 0
Zoom rectangle/pan control
mousetoolbar
Set the Pan/Zoom controls visibility: 0 = Buttons hidden; 1 = Buttons Visible
mousetoolbar=1
Default value: 0
Zoom level
zoom_level
Start zoom level for the map (1-16)
zoom_level=4
Default value: 8
Overview
overview
Show/hide the overview (bird view navigation) of the map (right-bottom corner)
overview=1
Default value: 0
Layer Switcher
layerswitcher
Show/hide the layer switcher control (right-top corner)
layerswitcher=1
Default value: 0
Mouse Position (coordinates)
mouseposition
Show/hide the map coordinates at the mouse location.
mouseposition=1
Default value: 0
Scale Line
scaleline
Show/Hide the scale bar on the map.
scaleline=1
Default value: 0
Permalink
permalink
Show/Hide the permalink control on the map (a link to the actual position in the map - zoom level and coordinates)
permalink=1
Default value: 0
Attribution Block
attribution
Show/Hide the attribution block on the map. In order to use an attribution block, an attribution parameter must be set in each layer that requires attribution.