JS API
- Parameters
- Options
- Example
- Methods
- fitToBoundingBox
- getBoundingBox
- getInitialBoundingBox
- getLayers
- getMouseMode
- off
- on
- once
- refresh
- reset
- setMouseMode
- usingLayer
- usingNewLayer
- Events
- Parameters
- Example
- Methods
- addFeature
- addFeatureCollection
- bringForwards
- bufferGeometry
- changeProperties
- clearFilters
- clearFeatures
- clearStyle
- clipByFeatureCollection
- convertToCentroids
- filterByBoundingBox
- filterByFeatureCollection
- filterByNearest
- filterByText
- getFeatureCollection
- hide
- sendBackwards
- show
- style
- update
- usingFeature
usingFeatureCollection
Gets a Query Object based on a A GeoJSON FeatureCollection provided by the user.
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 |
---|---|---|
featureCollection | Yes | A GeoJSON FeatureCollection to be used in the query |
Example
var gjson = {
type: "FeatureCollection",
features: [...]
};
var qry = new Mapzania.QueryEngine();
qry.usingFeatureCollection(gjson)
.filterByText("Landlocked=='Y'")
.bufferGeometry(500)
.apply()
.then(function (data) {
console.log(data);
})