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

convertToCentroids

Creates an filter that converts all geometry to a point that represents its centroid.

Parameters

No parameters.

Example

var qry = new Mapzania.QueryEngine();

qry.usingLayerSource("COUNTRIES")
  .convertToCentroids()
  .apply()
  .then(function(data){
        console.log(data);
   });