Required Layer Properties
id
string, Required
Serves as an identifier for the layer. Must be unique to the RAMP instance the layer is added to. Can be used to find the Layer API object via the RAMP API.
js
{
id: "myLayer"
}
layerType
string, Required
Defines the type of layer data we are consuming. Will determine how the layer is instantiated in RAMP.
Valid values:
esri-feature
: ESRI Feature Layeresri-map-image
: ESRI Map Image Layer (formerly known as Dynamic Layer)esri-tile
: ESRI Tile Layeresri-imagery
: ESRI Image Serviceesri-graphic
: ESRI Graphic Layerogc-wfs
: OGC WFS 3.0ogc-wms
: OGC WMSfile-geojson
: GeoJSONfile-zip-geojson
: Zipped GeoJSONfile-csv
: CSV Filefile-shape
: Shapefile (zipped)file-fgb
: FlatGeobuffile-zip-fgb
: Zipped FlatGeobufosm-tile
: OpenStreetMap Tile Layerdata-esri-table
ESRI Table Layerdata-csv
Non Spatial CSV Filedata-json
Compact JSON File
js
{
layerType: "esri-feature"
}
url
string, Required
The url where the layer definition and data should be loaded from.
- ESRI type layers will be an ArcGIS Server rest endpoint. Feature layers and Table layers must target the layer endpoint.
- WMS layers will be the WMS server url.
- WFS layers will be the server dataset url (i.e. something that returns GeoJSON).
- File type layers will point to a web hosted file, or an empty string if the
rawData
property is provided. Relative paths are supported. Data layers in file formats also apply. - OSM layer is an empty string.
js
{
url: "https://mydomain.ca/arcgis/rest/services/fancymap/mapserver"
}