Select to view content in your preferred language

Bookmark Zoom-To with Scale Change addition

916
1
Jump to solution
07-26-2012 11:18 AM
JoshJones1
Deactivated User
I am EXTREMELY new to the JavaScript API, and I was curious if there was a way to include a scale change with the "Bookmark Widget - Read Only" found here http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_bookmarks_dropdownbutton.html .

I have the bookmark widget working fine, but I'm nor sure how to have the scale change as well as zooming to the selected bookmark.  At this point I have used centroids of buildings as the coordinates, so I would assume that this would zoom the the lowest LOD, which is what I want, but this is not what happens.


Does anybody have any ideas or suggestions?


Thanks.


-Josh
0 Kudos
1 Solution

Accepted Solutions
JoshJones1
Deactivated User
Figured it out.  I just changed it to four points, instead of two repeating x's and two repeating y's.  I believe that it required a bounding box (even if the bounding box is extremely small), not simply one point repeated twice for each x and y location.




-Josh

View solution in original post

0 Kudos
1 Reply
JoshJones1
Deactivated User
Figured it out.  I just changed it to four points, instead of two repeating x's and two repeating y's.  I believe that it required a bounding box (even if the bounding box is extremely small), not simply one point repeated twice for each x and y location.




-Josh
0 Kudos