arcgis-parser
v2.1.0
Published
Parser for ArcGIS REST Services to human friendly JSON.
Downloads
9
Maintainers
Readme
ArcGIS Parser
Parser for ArcGIS REST Services to human friendly JSON.
Install
npm
$ npm install --save arcgis-parser
web
<script src="https://wzrd.in/standalone/arcgis-parser@latest"></script>
Quickstart
const url = 'https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer?f=pjson'
const response = await fetch(url)
const json = await response.json()
const metadata = arcgisParser(url, json)
//=metadata
MapServer?f=pjson
{
"currentVersion": 10.3,
"serviceDescription": "This map is in ...",
"mapName": "Layers",
"description": "This map presents low-resolution ...",
"copyrightText": "Copyright:© 2013 ESRI, i-cubed, GeoEye",
"supportsDynamicLayers": false,
"layers": [
{
"id": 0,
"name": "World Imagery",
"parentLayerId": -1,
"defaultVisibility": true,
"subLayerIds": null,
"minScale": 0,
"maxScale": 0
}
],
...
capabilities