CanvasMap
Getting Started Tutorials 3D Reference

Class CMDatasetGeoJSON extends CMDatasetVector

CMDatasetGeoJSON Class

Object Functions

Inherited From: CMDatasetVector
ReturnsFunctionThrows
SetURL()
SetGeoJSONFeatures(-)
SetGeoJSON(TheGeoJSONObject, ZoomToBounds)

Object Functions

SetURL()

Called to obtain the data for the layer from a URL.
Currently,only GeoJSON is supported as the transfer type.

SetGeoJSONFeatures(-)

Sets just the features within this dataset.

Parameters:
    - TheGeoJSONObject a valid GeoJSON object containing features. The

SetGeoJSON(TheGeoJSONObject, ZoomToBounds)

Set this dataset to match a GeoJSON object. This will replace any existing data

Parameters:
    TheGeoJSONObject - A GeoJSON object witha "features" object and optional "properties" object.
    ZoomToBounds - optional flag