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.
Sample code showing how to use the CoordSearchPanel.
var panel = new Heron.widgets.CoordSearchPanel({
onSearchCompleteZoom: 11,
fieldLabelX: __('lon),
fieldLabelY: __('lat'),
onSearchCompleteZoom: 10,
iconWidth: 32,
iconHeight: 32,
localIconFile: 'bluepin.png'
}
});
Configuration properties in addition to those listed for Ext.form.FormPanel.
label for X-coordinate, default is “X”, may use e.g. “lon”.
label for Y-coordinate, default is “Y”, may use e.g. “lat”.
icon height when providing own icon, default 32.
full URL or path for custom icon to use, default Null.
icon width when providing own icon, default 32.
name of local heron map pin icon to use, default ‘redpin.png’.
zoomlevel when moving to point, default 10.
custom projection (EPSG string) to enter coordinates if different from Map projection.