java.lang.Object | |
↳ | com.esri.core.portal.WebMap |
This class represents a WebMap and provides access to the base layers and operational layers within a WebMap.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WebMap(JsonParser parser, PortalItem item)
Constructs an empty WebMap.
| |||||||||||
WebMap(PortalItem item)
Constructs an empty WebMap.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getApplicationPropertiesJson()
Returns the Json string representing the application properties defined in the web map.
| ||||||||||
BaseMap |
getBaseMap()
Returns the BaseMap of this WebMap.
| ||||||||||
List<Bookmark> |
getBookmarks()
Returns a list of bookmarks defined for this WebMap.
| ||||||||||
UserCredentials |
getCredentials()
Returns the user credentials using on this webmap object.
| ||||||||||
PortalItem |
getInfo()
Returns the PortalItem that describes this WebMap.
| ||||||||||
Envelope |
getInitExtent()
Gets the initial extent of the web map.
| ||||||||||
List<WebMapLayer> |
getOperationalLayers()
Returns the operational layers of this WebMap.
| ||||||||||
List<WebMapQuery> |
getPredefinedQueries()
Returns a list of predefined query that were authored with this WebMap.
| ||||||||||
String |
getVersion()
Returns the version of this WebMap.
| ||||||||||
static WebMap |
newInstance(PortalItem portalitem)
Creates a WebMap using an PortalItem.
| ||||||||||
static void |
newInstance(String itemId, Portal portal, CallbackListener<WebMap> callbackListener)
Creates a WebMap using an Item's id obtained from a Portal.
| ||||||||||
static WebMap |
newInstance(JsonParser parser, Envelope extent, SpatialReference sr)
Creates a WebMap using JSON data and Extent.
| ||||||||||
static void |
newInstance(URL itemIdURL, String username, String password, CallbackListener<WebMap> callbackListener)
Creates a WebMap from a URL to an item id that represents this Web Map stored in a Portal.
| ||||||||||
static WebMap |
newInstance(String itemId, Portal portal)
Creates a WebMap using an Item's id obtained from a Portal.
| ||||||||||
static WebMap |
newInstance(BaseMap basemap, Envelope extent, SpatialReference sr)
Creates a WebMap using a BaseMap and Extent.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructs an empty WebMap. Users will never programmatically create a new instance of a WebMap.
Exception |
---|
Constructs an empty WebMap. Users will never programmatically create a new instance of a WebMap.
Exception |
---|
Returns the Json string representing the application properties defined in the web map.
Returns a list of bookmarks defined for this WebMap.
Returns the user credentials using on this webmap object.
Returns the PortalItem that describes this WebMap.
Gets the initial extent of the web map.
Returns the operational layers of this WebMap.
Returns a list of predefined query that were authored with this WebMap.
Creates a WebMap using an PortalItem.
portalitem | the given PortalItem. |
---|
Exception | the exception |
---|
Creates a WebMap using an Item's id obtained from a Portal. This constructor is useful for applications that prefer persisting the Item Id of an Item previously obtained from a Portal and then using the Id to retrieve the associated Item data.
itemId | the item ID - item id of the item |
---|---|
portal | the Portal - portal the user is a member of |
callbackListener | - callback returns with an initialized webmap |
Creates a WebMap using JSON data and Extent. Be cautious when using this method to create a WebMap, as there isn't a PortalItem backing it.
parser | the parser |
---|---|
extent | the extent |
sr | the sr |
Exception | the exception |
---|
Creates a WebMap from a URL to an item id that represents this Web Map stored in a Portal. A user name and password
will be required if the requested WebMap is accessible only to authorized users. If a token is supplied with the
URL, then the uname
and pwd
are ignored.
itemIdURL | A URL to an item stored in a portal |
---|---|
username | the username of a Portal user |
password | the password of a Portal user |
callbackListener | the listener returns with a initialized webmap |
Creates a WebMap using an Item's id obtained from a Portal. This constructor is useful for applications that prefer persisting the Item Id of an Item previously obtained from a Portal and then using the Id to retrieve the associated Item data.
itemId | the item ID - item id of the item |
---|---|
portal | the Portal - portal the user is a member of |
Exception | the exception |
---|
Creates a WebMap using a BaseMap and Extent. Be cautious when using this method to create a WebMap, as there isn't a PortalItem backing it.
basemap | the base map of the webmap |
---|---|
extent | the full extent of the web map. |
sr | the spatial reference of the map extent. |