Home > Geopedia API > featureCtl

featureCtl

Controls a feature selection (highlight).

Command JSON members:

  • command: "featureCtl",
  • tableId: <table/layer ID>,
  • featureId: <feature ID inside the table>,
  • clearSelection: true/false, (to clear the current highlight/selection)
  • applyLocation: true/false, (can change the map position to the feature's location)
  • applyScale: true, false (can change the current zoom level to zoom in to the feature)

No response is returned.

Example:

{"command":"featureCtl","tableId":123,"featureId":20,"applyLocation":true}