CanvasMap
Getting Started Tutorials 3D Reference

Class CMLayerGrid extends CM2Layer

CMLayerGrid Class

Displays a raster based on the numeric values in a JSON file.

Settings Group: Dataset

Setting Name Type Options Default Comments
URL URL CMTYPE_STRING null Full or partial URL to the dataset to load into the layer

Object Functions

Inherited From: CM2Layer
ReturnsFunctionThrows
RequestData(URL, DataSetType)

Object Functions

RequestData(URL, DataSetType)

Called to obtain the data for the layer from a URL.
Depricated, use:
- SetSetting("Dataset","URL",URL);
- SetSetting("Dataset","Format",Format);
- RequestData()

TheView is required so the layer can be repainted when data is received.

Parameters:
    URL - the URL to use to obtain data
    DataSetType - optional data set type (GeoJSON is the default)