CanvasMap
Getting Started Tutorials 3D Reference

Class CMDatasetGeoJSON extends CMDatasetVector

CMDatasetGeoJSON Class


Copyright (C) 2020, Humboldt State University, Jim Graham

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see
.

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