|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.portal.WebMap
public class WebMap
This class represents a WebMap and provides access to the base layers and operational layers within a WebMap
Method Summary | |
---|---|
BaseMap |
getBaseMap()
Returns the BaseMap of 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. |
String |
getVersion()
Returns the version of this WebMap. |
static WebMap |
newInstance(BaseMap basemap,
Envelope extent,
SpatialReference sr)
Creates a WebMap using a BaseMap and Extent. |
static WebMap |
newInstance(org.codehaus.jackson.JsonParser parser,
Envelope extent,
SpatialReference sr)
Creates a WebMap using JSON data and Extent. |
static void |
newInstance(PortalItem portalItem,
CallbackListener<WebMap> callbackListener)
Creates a WebMap from a PortalItem. |
static void |
newInstance(String itemId,
Portal portal,
CallbackListener<WebMap> callbackListener)
Creates a WebMap using an Item's id obtained from a Portal. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public PortalItem getInfo()
public BaseMap getBaseMap()
public List<WebMapLayer> getOperationalLayers()
public String getVersion()
public static void newInstance(PortalItem portalItem, CallbackListener<WebMap> callbackListener)
portalItem
- - the item for which the webmap is to be createdcallbackListener
- - the callbacklistener returns with a webmappublic static void newInstance(URL itemIdURL, String username, String password, CallbackListener<WebMap> callbackListener)
uname
and pwd
are ignored.
itemIdURL
- A URL to an item stored in a portalusername
- the username of a Portal userpassword
- the password of a Portal usercallbackListener
- the listener returns with a initialized webmappublic static void newInstance(String itemId, Portal portal, CallbackListener<WebMap> callbackListener)
itemId
- the item ID - item id of the itemportal
- the Portal - portal the user is a member ofcallbackListener
- - callback returns with an initialized webmappublic static WebMap newInstance(org.codehaus.jackson.JsonParser parser, Envelope extent, SpatialReference sr) throws Exception
parser
- extent
-
Exception
public static WebMap newInstance(BaseMap basemap, Envelope extent, SpatialReference sr)
basemap
- sr
- extent
- public UserCredentials getCredentials()
public Envelope getInitExtent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |