| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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.
| Constructor Summary | |
|---|---|
| protected  | WebMap(org.codehaus.jackson.JsonParser parser,
       PortalItem item)Constructs an empty WebMap. | 
| protected  | WebMap(PortalItem item)Constructs an empty WebMap. | 
| Method Summary | |
|---|---|
|  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(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 WebMap | newInstance(PortalItem portalitem)Creates a WebMap using an PortalItem. | 
| static WebMap | newInstance(String itemId,
            Portal portal)Creates a WebMap using an Item's id obtained from a Portal. | 
| 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 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected WebMap(org.codehaus.jackson.JsonParser parser,
                 PortalItem item)
          throws Exception
Exception
protected WebMap(PortalItem item)
          throws Exception
Exception| Method Detail | 
|---|
public PortalItem getInfo()
public BaseMap getBaseMap()
public List<WebMapLayer> getOperationalLayers()
public List<Bookmark> getBookmarks()
public List<WebMapQuery> getPredefinedQueries()
public String getVersion()
public String getApplicationPropertiesJson()
public 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 webmap
public 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 webmap
public static WebMap newInstance(String itemId,
                                 Portal portal)
                          throws Exception
itemId - the item ID - item id of the itemportal - the Portal - portal the user is a member of
Exception - the exception
public static WebMap newInstance(PortalItem portalitem)
                          throws Exception
portalitem - the given PortalItem.
Exception - the exception
public static WebMap newInstance(org.codehaus.jackson.JsonParser parser,
                                 Envelope extent,
                                 SpatialReference sr)
                          throws Exception
parser - the parserextent - the extentsr - the sr
Exception - the exception
public static WebMap newInstance(BaseMap basemap,
                                 Envelope extent,
                                 SpatialReference sr)
basemap - the base map of the webmapextent - the full extent of the web map.sr - the spatial reference of the map extent.
public UserCredentials getCredentials()
public Envelope getInitExtent()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||