Hide Table of Contents
esri
esri/arcgis
esri/dijit
esri/dijit/analysis
esri/dijit/geoenrichment
esri/dijit/geoenrichment/ReportPlayer
esri/geometry
esri/layers
esri/renderers
esri/symbols
esri/tasks
esri/tasks/datareviewer
esri/tasks/geoenrichment
esri/tasks/locationproviders
require(["esri/dijit/BookmarkItem"], function(BookmarkItem) { /* code goes here */ });
| Name | Summary |
|---|---|
| new BookmarkItem(params?) | Creates a new BookmarkItem. |
esri/dijit/BookmarkItem | Download source
<> params |
Optional | See options list for parameters. |
params properties: <> extent |
Optional | The extent for the specified bookmark item. |
<> name |
Optional | The name for the bookmark item. |
require([
"esri/map", "esri/dijit/Bookmark", "dojo/dom", ...
], function(Map, Bookmark, dom, ... ) {
var map = new Map( ... );
var bookmark = new Bookmark({
map: map,
bookmarks: bookmarks
}, dom.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"
}];