-
class GeoAdmin.Features(options)
| param options: | Object options |
Class providing the functions necessary to recenter and highlight features. It consumes the feature services described here
Example Use
Sample code to recenter the map based on feature
var f = new GeoAdmin.Features({map: this.map});
f.recenter('layerid', '123,456');
Config Options
Configuration properties.
-
map
OpenLayers.Map
A OpenLayers.Map instance
Public Methods
Public methods.
-
Features.highlight()
| Parameters: |
- layer – String: the layer id. The layer list can be found at this link
- ids – String: comma separated list of feature ids
- cb – String: optional callback
|
Highlight the features in the map according to the searched ids
-
Features.recenter()
| Parameters: |
- layer – String: the layer id. The layer list can be found there
- ids – String: comma separated list of feature ids
- cb – String: optional callback
|
Recenter the map according to the searched ids
-
Features.show()
| Parameters: |
- layer – String: the layer id. The layer list can be found over there
- ids – String: comma separated list of feature ids
- cb – String: optional callback
|
Highlight and recenter the features in the map according to the searched ids