Step 1)
Create a new Github repo. Name it: koop-provider-remote-geojson
Step 2)
Step 1)
Create a new Github repo. Name it: koop-provider-remote-geojson
Step 2)
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>URL-Encoder for koop-provider-remote-geojson</title> | |
| <link rel="stylesheet" href="https://s3-us-west-1.amazonaws.com/patterns.esri.com/files/calcite-web/1.2.5/css/calcite-web.min.css"> | |
| <script src="https://s3-us-west-1.amazonaws.com/patterns.esri.com/files/calcite-web/1.2.5/js/calcite-web.min.js"></script> | |
| <style> | |
| textarea{ | |
| height: 200px |
This project can be used to transform GeoJSON files into ArcGIS Feature Services on the fly.
Live demo with a dataset of City Shops from opendata.villanuevadelaserena.es.
Note in case it doesn't work try with this local copy: [live demo](http://www.arcgis.com/home/webmap/viewer.html?source=sd&panel=gallery&sugg
| function getData(url){ | |
| Utilities.sleep(1000); | |
| var response = UrlFetchApp.fetch(url); | |
| var json = response.getContentText(); | |
| return JSON.parse(json); | |
| } | |
| function getToken(client_id, client_secret){ | |
| Utilities.sleep(1000); | |
| <!doctype html> | |
| <html class="no-js" lang="es-es"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Download CSV</title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="manifest" href="site.webmanifest"> | |
| <link rel="apple-touch-icon" href="icon.png"> | |
| <link rel="stylesheet" href="css/normalize.css"> |
| var https = require('follow-redirects').https; | |
| var fs = require('fs'); | |
| let data = { | |
| idProvincia: '04', | |
| idMunicipio: '04013', | |
| idTipoVia: '', | |
| tipoVia: 'AVENIDA', | |
| codIberVia: 'AVENIDA,FEDERICO GARCIA LORCA', | |
| nombreVia: 'FEDERICO GARCIA LORCA', |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <script> | |
| const s = document.createElement("script"); | |
| s.type = "text/javascript"; | |
| s.src = "https://geo-developers.github.io/geoiniciativas/assets/js/geoiniciativas-widget.js"; |
| <html> | |
| <head> | |
| <style> | |
| #map { | |
| height: 400px; | |
| } | |
| </style> | |
| <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | |
| <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | |
| </head> |
| <html> | |
| <head> | |
| <style>#mapDiv{width:100%; height:400px}</style> | |
| </head> | |
| <body> | |
| <h1>Drawing marker in ArcGIS</h1> | |
| <div id="mapDiv"></div> | |
| <script type="module"> | |
| import MapView from "https://js.arcgis.com/4.18/@arcgis/core/views/MapView.js"; |