Yee,
Just use the locate widgets coordinate option (the blue push pin button) to recenter the map to the coordinate and then zoom in to the extent that you would like and then use the book mark widget to add the new bookmark.
import com.esri.ags.geometry.Extent; var ext:Extent = new Extent(your.xmin, your.ymin, your.xmax, your.ymax);
import com.esri.ags.geometry.WebMercatorExtent; var ext:WebMercatorExtent = new WebMercatorExtent(your.xmin, your.ymin, your.xmax, your.ymax);
Yee,
So the code to get the four values you have into an extent would simply be:import com.esri.ags.geometry.Extent; var ext:Extent = new Extent(your.xmin, your.ymin, your.xmax, your.ymax);
If your map is using ESRI base maps then you need to have the extent in webMercator in that case use this instead:import com.esri.ags.geometry.WebMercatorExtent; var ext:WebMercatorExtent = new WebMercatorExtent(your.xmin, your.ymin, your.xmax, your.ymax);
Yee,
The difference between those lat lon DMS numbers is the ones in the bookmark xml is one is geographic coordinates and the XML has WebMercator coordinates (Meters). So like I said in the previous post you can use WebMercatorExtent to handle that. If are really starting with coordinates like"38°15�?�15�?�N 85°45�?�37�?�W" then the first thing you have to do is some math to convert those to Decimal Degrees. Just Google it.