ArcGIS Parser
![ES5](https://camo.githubusercontent.com/d341caa63123c99b79fda7f8efdc29b35f9f2e70/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f65732d352d627269676874677265656e2e737667)
![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)
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)
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