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

usingLayerSource

Gets a Query Object based on the key of the layer-source.

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

Parameters

Name Required Description
sourceKey Yes The key of the layer-source to be used in the query

Example


 var qry = new Mapzania.QueryEngine();

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