Heron.widgets.MapPanel

Extends
xtype
hr_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

Function A 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 a String with the formatted text.

Example:
Heron.options.map.settings = {

     formatX: function(lon,precision) {
         return 'x: ' + lon.toFixed(precision) + ' m.';
     },
formatY

Function A 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 a String with 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.