https://github.com/huidaecho/agol-ol
ArcGIS Online (AGOL) Web Map using OpenLayers
https://github.com/huidaecho/agol-ol
agol arcgis json openlayers webmap webmap-json
Last synced: 12 months ago
JSON representation
ArcGIS Online (AGOL) Web Map using OpenLayers
- Host: GitHub
- URL: https://github.com/huidaecho/agol-ol
- Owner: HuidaeCho
- License: gpl-3.0
- Created: 2017-08-12T20:16:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-01T13:56:54.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T17:23:13.841Z (about 1 year ago)
- Topics: agol, arcgis, json, openlayers, webmap, webmap-json
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# AGOL-OL: ArcGIS Online (AGOL) Web Map using OpenLayers
I wrote this JavaScript code to display one of my web maps hosted on ArcGIS
Online (AGOL). I did not put much time and effort to polish this code, so it is
just good enough to display [this map](http://www.arcgis.com/home/item.html?id=b528fdc8b48e40ad925225387966f523)
and identify feature attributes. For demo, please visit https://app.isnew.info/agol-ol.
# Usage
```
createWebMap(mapDivId, itemId, extentLayerName);
```
# HTML Example
```
ArcGIS Online (AGOL) Web Map using OpenLayers
// create a web map
createWebMap(
// div ID for the map
'map',
// portal item ID of my web map
'b528fdc8b48e40ad925225387966f523',
// extent layer name
'firestations');
```
# License
Copyright (C) 2017, Huidae Cho <>
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see .