How to use
See How to use ArcGIS samples for help running the sample.
Bookmark
- This sample shows how to integrate bookmarks into your Web ADF Java 10.0 application. The bookmarks represent an area of interest on a map with some label and description. For example, a bookmark with the map zoomed into the Golden Gate bridge in San Francisco, can have a label and description of 'The Golden Gate' and 'GREAT views of the bay' respectively. This sample has been developed and tested with XMLBookmarks using San Francisco dataset.
- Create and start an ArcGIS map server object, SanFrancisco, the map configuration file at %AGSDEVKITJAVA%\java\samples\data\SanFrancisco\SanFrancisco.mxd.
- There are two ways to build the sample. You can either use ArcGIS Ant or Eclipse plugin. To use Ant, at command line, browse to %AGSDEVKITJAVA%\java\samples\bookmark, type arcgisant build, follow the command prompt to finish the build, use the SanFrancisco service created above. There will be a directory called build under the sample root folder, inside there will be a war file. Deploy the war file into Tomcat.
- Another way is to use Eclipse. Open Eclipse, File - New Project - ESRI Templates - Web ADF Samples.
- Choose the Bookmark.
- Go through the wizard to finish building the sample.
- Run the sample web application on server.
- You can either deploy this web application or import the WAR file directly into your IDE.
- After deployment access the sample by typing the URL (e.g. http://[host]:[port]/[samplename]) in a web browser.
- Select and view bookmark from the list of bookmarks in the drop down
- If the bookmark allows editing, 3 buttons, 'Add', 'Remove' and 'Update' will be visible
- The user can add or update bookmark's map extent, label or description, and user can also remove a bookmark
Development licensing | Deployment licensing |
---|---|
Server | Server |