MousePosition Plugin - geosolutions-it/MapStore GitHub Wiki
This plugin wraps the OpenLayers MousePosition control.
Configuration
{
"ptype": "gxp_mouseposition",
"displayProjectionCode":"EPSG:4326",
"customCss": "text-shadow: 1px 0px 0px #686868, 1px 1px 0px #686868, 0px 1px 0px #686868,-1px 1px 0px #686868, -1px 0px 0px #686868, -1px -1px 0px #686868, 0px -1px 0px #686868, 1px -1px 0px #686868, 1px 4px 5px #aeaeae;color:white"
}
ptype
: the plugin name :gxp_mouseposition
displayProjectionCode
: the EPSG code in wich display coordinates. if missing, it will use the one of the map.customCss
: custom css for the text. The presence of this parameter will create aspan
with this text as the value of the style attribute containing the MousePosition text (also prefix and suffix)config
: custom configurations to pass to theOpenLayers.Control.MousePositon
object (e.g. suffix, prefix)