GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - HuidaeCho/agol-ol: ArcGIS Online (AGOL) Web Map using OpenLayers

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
COPYING
COPYING
 
 
README.md
README.md
 
 
agol-ol.css
agol-ol.css
 
 
agol-ol.js
agol-ol.js
 
 
index.html
index.html
 
 

Repository files navigation

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 and identify feature attributes. For demo, please visit https://app.isnew.info/agol-ol.

Usage

createWebMap(mapDivId, itemId, extentLayerName);

HTML Example

<html>
  <head>
    <title>ArcGIS Online (AGOL) Web Map using OpenLayers</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.2.0/ol.css" type="text/css">
    <link rel="stylesheet" href="agol-ol.css" type="text/css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.2.0/ol.js" type="text/javascript"></script>
    <script src="agol-ol.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="map" class="map"></div>
    <script type="text/javascript">
      // create a web map
      createWebMap(
        // div ID for the map
        'map',
        // portal item ID of my web map
        'b528fdc8b48e40ad925225387966f523',
        // extent layer name
        'firestations');
    </script>
  </body>
</html>

License

Copyright (C) 2017, Huidae Cho <https://idea.isnew.info/>

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 http://www.gnu.org/licenses/.

About

ArcGIS Online (AGOL) Web Map using OpenLayers

Topics

agolarcgisjsonopenlayerswebmapwebmap-json

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.