In this section: |
You insert an Esri map component in an HTML page by clicking the Esri Map button on the right end of the Objects group on the Components tab, as shown in the following image.
After clicking the button, use your mouse to draw an area on the HTML canvas for the map component.
Reference: |
Once you insert the Esri map component into the HTML page, you can configure the following properties and objects.
The Esri viewer has widgets available at runtime that provide a table of contents (layer list) and a set of tools for making selections and changing the viewing area on the map.
You have the following options for configuring the map component contents.
Note: On the Properties panel, the Map type property defaults to Google map. This property is not relevant to an Esri component and can be ignored in this context.
The Miscellaneous options on the Properties panel let you select one of the following default basemaps:
You can also add a custom basemap, as described in Configuring Geographic Information.
When selections on a map trigger a request to run, you can configure whether clearing the selections reruns the request. To specify whether to rerun the request, use the Selection Required property on the Properties panel for the map object.
To define the layers that will display on your map component, you use the ESRI Object Settings panel, shown in the following image:
On this panel, you configure:
Add a layer by clicking the New Layer icon at the top of the panel, and remove a selected layer by clicking the X at the top of the panel. You can change the default layer name by selecting the default name, clicking it, and typing over it when the edit box displays.
Using the arrow keys at the top of the panel, you can control the order of layers on the resulting map.