org.GeoPrisma.Shortcut.js

Summary
org.GeoPrisma.Shortcut.js
Constants
i18n_please_wait{String} Wait message, for initial dataStore row
Properties
triggerAction
displayField
valueField
mode
listeners
APIProperty: map{<OpenLayers.Map>}
APIProperty: layers
APIProperty: maxFeatures
APIProperty: resourceName
APIProperty: serviceName
APIProperty: layerName
format
Functions
loadDataCalled after the ComboBox has been rendered.
sortByFieldValueParameters : a {string} b {string}
populateComboBoxPopulate the combobox droplist with features
recenterOnCoordsRecenters on given coordinates and zoom level
recenterOnBboxRecenters on given bounds
recenterOnGeometryRecenters on given geometry
highlightOnGeometryHighlights the given geometry
activateResourcesCalled when this widget is used.

Constants

i18n_please_wait

{String} Wait message, for initial dataStore row

Properties

triggerAction

{String}Default triggerAction value.

displayField

{String}Default displayField value.

valueField

{String}Default valueField value.

mode

{String}Default mode value.

listeners

{Object}Contains functions called on specific combobox events.

APIProperty: map

{<OpenLayers.Map>}

APIProperty: layers

{Array(<OpenLayers.Layer>)}Get automatically filled with layers that has this.resourceName

APIProperty: maxFeatures

{integer}The maximum number of features returned by the AJAX request.

APIProperty: resourceName

{string}The name of the Resource from the config file.

APIProperty: serviceName

{string}The name of the Service from the config file.

APIProperty: layerName

{string}The name of the layer from the DataStore in the config file.  Comes from the servicetype.

format

{string}The default format value.  Only used when using ‘featureserver’ servicetype.

Functions

loadData

loadData : function()

Called after the ComboBox has been rendered.

Send the request that will load the data to populate the ComboBox.

sortByFieldValue

sortByFieldValue: function(a,
b)

Parameters : a {string} b {string}

Returns : {Array} - Sorted array

populateComboBox

populateComboBox: function(features)

Populate the combobox droplist with features

Parameters

features{Array} of OpenLayers.Feature.Vector objects

recenterOnCoords

recenterOnCoords: function(x,
y,
zoom)

Recenters on given coordinates and zoom level

Parameters

x{Float} easting coordinate
y{Float} northing coordinate
zoom{Integer} zoom level (optional)

recenterOnBbox

recenterOnBbox: function(bbox)

Recenters on given bounds

Parameters

bbox{<OpenLayers.Bounds>}

recenterOnGeometry

recenterOnGeometry: function(geometry)

Recenters on given geometry

Parameters

geometry{<OpenLayers.Geometry>}

highlightOnGeometry

highlightOnGeometry: function(feature)

Highlights the given geometry

Parameters

geometry{<OpenLayers.Geometry>}

activateResources

activateResources: function()

Called when this widget is used.  “Activate” specific resources or the same resources it uses when defined.  The real action made is to show the revelent OpenLayers.Layer objects.

loadData : function()
Called after the ComboBox has been rendered.
sortByFieldValue: function(a,
b)
Parameters : a {string} b {string}
populateComboBox: function(features)
Populate the combobox droplist with features
recenterOnCoords: function(x,
y,
zoom)
Recenters on given coordinates and zoom level
recenterOnBbox: function(bbox)
Recenters on given bounds
recenterOnGeometry: function(geometry)
Recenters on given geometry
highlightOnGeometry: function(feature)
Highlights the given geometry
activateResources: function()
Called when this widget is used.
Close