Customizing Bookmarks

940
4
07-05-2011 03:20 PM
charlessaenz
New Contributor
Hello, can anyone tell me how you can customize the bookmarks widget to remove the standard bookmarks that come preset and how to add your own that will be permanent every time a user accesses the viewer?
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Charles,

  Have you looked at the BookmarkWidget.xml file? Also look at this link:

http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Bookmark_widget/01m30000000m000000/
0 Kudos
MeghanMcGaffin
New Contributor
Use this tool to help get your location information:
http://help.arcgis.com/en/webapps/flexviewer/extenthelper/flexviewer_extenthelper.html

Then configure your bookmark xml file to look like this:<configuration>
<bookmarks> <bookmark name="City Hall and Parson's Complex"> -8133700 5045180 -8132200 5046025</bookmark><bookmarks>

So you call the <bookmarks> Then you name your bookmark and define where it is <bookmark name="City Hall and Parson's Complex"> -8133700 5045180 -8132200 5046025. then you close the tag of the actual bookmark </bookmark> and the total container of bookmarks </bookmarks>You put as many bookmarks as you like between <bookmarks>....</bookmarks>
0 Kudos
charlessaenz
New Contributor
Thanks you guys that worked like a charm! I'm totally new at this and all I need is to be pointed in the right direction.
0 Kudos
BrianOevermann
Occasional Contributor III
Charles,

The tool that Meghan's link references is great if you are using the Web Mercator projection that is used by all ESRI map services.  But if you are using a different projection in your application, such as a State Plane projection relevant to your locale, that tool will not return the proper coordinates.

I am using the Enhanced Bookmark Widget available in the code gallery.
http://www.arcgis.com/home/item.html?id=ed4d8dbef33d400499d2cc6475f24a4e

This widget allows you to create your own bookmarks based on the current extent and also has functions to save them to a file or email them to someone.  You can load that file into the widget as well, but the created bookmarks are really only "local" to the creator or anyone possessing the saved/emailed file.

When I want to create bookmarks that will become the "default" for everyone, I create the bookmarks within the widget, then save/email them.  I then open that file in a text editor and copy/paste the <bookmark> (singular) tags into my BookmarkWidget.xml configuration file.  The bookmarks then become visible to everyone.
0 Kudos