dojo.require("esri.dijit.BookmarkItem");
Description
(Added at v2.5)
Defines a bookmark for use in the Bookmark widget.
Samples
Search for
samples that use this class.
Constructors
CSS
esri/dijit/BookmarkItem | Download source
Constructor Details
Creates a new BookmarkItem.
Parameters:
<Object > params |
Optional |
See options list for parameters. |
params
properties:
<Extent > extent |
Optional |
The extent for the specified bookmark item. |
<String > name |
Optional |
The name for the bookmark item. |
Sample:
var bookmark = new esri.dijit.Bookmark({
map: map, bookmarks: bookmarks
}, dojo.byId("bookmark"));
Bookmark items can also be created by defining a json object with the following format:
var bookmarks = [{
"extent": {
"spatialReference": {
"wkid": 102100
},
"xmax": -10983636.8866296,
"xmin": -14411372.5423473,
"ymax": 5109691.46502651,
"ymin": 2707598.58754309
},
"name": "Sonara"
}];