Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Web Applications with ArcGIS

You're reading from   Building Web Applications with ArcGIS Build an engaging GIS Web application from scratch using ArcGIS

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783552955
Length 138 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Hussein Nasser Hussein Nasser
Author Profile Icon Hussein Nasser
Hussein Nasser
Arrow right icon
View More author details
Toc

Using online map from the JavaScript API

Although the ArcGIS online map viewer is incredibly easy to use and configure, it is still limited, and doesn't allow us to add our own code and functionality. That is why Esri allowed you to use ArcGIS JavaScript API to extend the functionality of ArcGIS Online so that they can host the data and you work on the application. Luckily, Esri has provided us with the source code of a complete JavaScript API viewer for ArcGIS Online. All you have to do is to add some configurations and you are ready to use it. In this section, we will learn how to connect ArcGIS Online using the JavaScript API viewer.

Each map you create in ArcGIS Online has a unique global map ID; yes, even the one you just created has an ID and we will need this ID to connect to our map. Follow these steps to get your map ID and configure your ArcGIS online viewer:

  1. Log in to www.arcgis.com and then click on My Content.
  2. Click on Bestaurants map to open it.
  3. Take a look at the address...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image