Heron

Table Of Contents

Previous topic

Heron.widgets.search

Next topic

Heron.widgets.search.FeatureGridPanel

Heron.widgets.search.CoordSearchPanel

Extends
xtype
gx_formpanel
class Heron.widgets.search.CoordSearchPanel(config)

A specific Ext.form.FormPanel whose internal form is a Ext.form.BasicForm. Use this form to do pan and zoom to a point in the map. The coordinates are typed in by the user.

Example Use

Sample code showing how to use the CoordSearchPanel.

var panel = new Heron.widgets.search.CoordSearchPanel({
        onSearchCompleteZoom: 11,
        fieldLabelX: __('lon),
        fieldLabelY: __('lat'),
        onSearchCompleteZoom: 10,
        iconWidth: 32,
        iconHeight: 32,
        localIconFile: 'bluepin.png'
    }
});

Config Options

Configuration properties in addition to those listed for Ext.form.FormPanel.

fieldLabelX

label for X-coordinate, default is “X”, may use e.g. “lon”.

fieldLabelY

label for Y-coordinate, default is “Y”, may use e.g. “lat”.

iconHeight

icon height when providing own icon, default 32.

iconUrl

full URL or path for custom icon to use, default Null.

iconWidth

icon width when providing own icon, default 32.

localIconFile

name of local heron map pin icon to use, default ‘redpin.png’.

onSearchCompleteZoom

zoomlevel when moving to point, default 10.

projection

custom projection (EPSG string) to enter coordinates if different from Map projection.