arcgis-parser
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

ArcGIS Parser

Build Status npm version Coverage Status MIT licensed ES5

Standard - JavaScript Style Guide

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

Package Sidebar

Install

npm i arcgis-parser

Weekly Downloads

0

Version

2.1.0

License

MIT

Last publish

Collaborators

  • deniscarriere