gago-arcgis-rest-request

处理arcgis的rest请求

Usage no npm install needed!

<script type="module">
  import gagoArcgisRestRequest from 'https://cdn.skypack.dev/gago-arcgis-rest-request';
</script>

README

OVERVIEW

A module for making requests to the ArcGIS REST API that runs in Node.js and modern browsers.

USE

npm install gago-arcgis-rest-request
import { request } from 'gago-arcgis-rest-request';
const url = "https://www.arcgis.com/sharing/rest/content/items/6e03e8c26aad4b9c92a87c1063ddb0e3/data";

request(url).then(response => {
    console.log(response) // WebMap JSON
});