View source: R/lib_data_loader.R
| resolve_via_arcgis | R Documentation |
Verifies that an ArcGIS FeatureServer layer still exists by fetching
its f=json metadata, then returns a paged GeoJSON query URL for the
full layer. ArcGIS FeatureServer layers back the Toronto Police
Service open-data portal used across the MORIE family.
resolve_via_arcgis(provenance)
provenance |
A provenance list as returned by
|
The layer query URL (where=1=1, all fields, GeoJSON) as a
character string, or NULL if the field is missing, the request
fails, or the layer metadata reports an error.
# Missing fields return NULL rather than erroring:
resolve_via_arcgis(list())
prov <- list(dataset = list(arcgis_layer_url = paste0(
"https://services.arcgis.com/S9th0jAJ7bqgIRjw/arcgis/rest/services/",
"Neighbourhood_Crime_Rates_Open_Data/FeatureServer/0")))
resolve_via_arcgis(prov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.