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

apply

This method runs the query that has been built up by chaining filters on the Query object.

It returns a promise with the filtered feature-collection.

Parameters

No parameters.

Example

var qry = new Mapzania.QueryEngine();

qry.usingLayerSource("COUNTRIES")
  .filterByText("LandLocked=='Y'")
  .convertToCentroids()
  .bufferGeometry(500)
  .apply()
  .then(function(data){
        console.log(data);
   });