Heron.widgets.MapPanel¶
-
class
Heron.widgets.MapPanel(config)¶
A wrapper Panel for a GeoExt MapPanel.
Config Options¶
Configuration properties in addition to those listed for GeoExt.MapPanel.
-
formatX FunctionA custom format function for the x coordinate text. When set this function overrides the default format function. The signature of this function should be:function(lon,precision). The result should be aStringwith the formatted text.- Example:
Heron.options.map.settings = { formatX: function(lon,precision) { return 'x: ' + lon.toFixed(precision) + ' m.'; },
-
formatY FunctionA custom format function for the y coordinate text. When set this function overrides the default format function. The signature of this function should be:function(lat,precision). The result should be aStringwith the formatted text.- Example:
Heron.options.map.settings = { formatY: function(lat,precision) { return 'y: ' + lat.toFixed(precision) + ' m.'; },
-
useMapContext Use the Heron Map Context (HMC) provided by Heron.App. The HMC defines a Map settings and Layers. Default value is false.