Table Of Contents

Previous topic

GeoAdmin.ExtendedTooltip

Next topic

GeoAdmin.Geocoder

This Page

GeoAdmin.Features

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:
  • layerString: the layer id. The layer list can be found at this link
  • idsString: comma separated list of feature ids
  • cbString: optional callback

Highlight the features in the map according to the searched ids

Features.recenter()
Parameters:
  • layerString: the layer id. The layer list can be found there
  • idsString: comma separated list of feature ids
  • cbString: optional callback

Recenter the map according to the searched ids

Features.show()
Parameters:
  • layerString: the layer id. The layer list can be found over there
  • idsString: comma separated list of feature ids
  • cbString: optional callback

Highlight and recenter the features in the map according to the searched ids