JS API
Map Object
QueryEngine Object
Layer Object
Feature Object
Query Object
GeoJson Function Library (Experimental)

usingFeature

Get a Feature Object from the map based on an id parameter.

This feature object is a fluent object and can be used to chain method calls to the feature as per the example below.

Parameters

Name Required Description
id Yes The id of the feature that will be used.

Example

var map = new Mapzania.Map("map-div", "AFRICA");

map.usingLayer("COUNTRIES")
  .usingFeature("107")
    .show()
    .style({ fillColor: "#FF0000"})
    .update();