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

Customizing basic features

In this section, we will learn how to add and configure some basic features to our new map that will help our map get richer.

Default extent

The extent is a boundary of a map that limits what the users see. By default, when you publish a service, the current extent in your data gets saved in the service. That is why when you added the map to our application, we got a partial view and we had to zoom out to see all other restaurants. You will see that sometimes you will need to change the default extent, for instance, when your users want to see the full extent of the country, or sometimes each user wants to zoom to their working area when they run the application. In this section, we will learn how to change the default extent. We want to set the extent of our map to -88.27, 17.47, -88.16, and 17.54, which represents the center of Belize city:

  1. Open the mybestaurants.html file with Notepad ++ if it is not already opened. Since the extent is a set of points, it is required...
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