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