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

createPoint

Creates a GeoJSON Point geometry object.

Parameters

Name Required Description
param1 Yes Either a coordinate array of two values ([x,y]) or a numeric x-value.
param2 No If param1 is a numeric x-value, param2 is a numeric y-value

Example

var gjson = Mapzania.GeoJson.createPoint([20.33, 30.64]);
var gjson = Mapzania.GeoJson.createPoint(20.33, 30.64);