public static class BasemapGallery.Parameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static BasemapGallery.Parameters |
create()
create new options object;
|
void |
setBasemapIds(java.lang.String[] basemapIds) |
void |
setBasemaps(Basemap[] basemaps) |
void |
setBingMapsKey(java.lang.String bingMapsKey) |
void |
setMap(MapWidget map) |
void |
setReferenceIds(java.lang.String[] referenceIds) |
void |
showArcGISBasemaps(boolean showBasemaps) |
public static BasemapGallery.Parameters create()
public final void setBasemapIds(java.lang.String[] basemapIds)
basemapIds
- - Optional. List of basemap layer ids in the current map. These layers will be removed when
switching to a new basemap.public final void setBasemaps(Basemap[] basemaps)
basemaps
- - Optional. An array of user-defined basemaps to display in the BasemapGallery.public final void setBingMapsKey(java.lang.String bingMapsKey)
bingMapsKey
- - Optional. Specify your Bing Maps key. If no Bing Maps key is provided Bing Map
types will not be displayed in the BasemapGallery.public final void setMap(MapWidget map)
map
- - Reference to the map. The map parameter is required.public final void setReferenceIds(java.lang.String[] referenceIds)
referenceIds
- - optional. List of reference layer ids in the current map. Reference layers are displayed
on top of the map and usually contain information like place boundaries or labels. All layers specified by the
referenceIds will be removed when switching to a new basemap.public final void showArcGISBasemaps(boolean showBasemaps)
showBasemaps
- -Optional. When true, queries ArcGIS.com to retrieve available basemaps. When false,
only user-defined basemaps specified using the basemaps property are displayed. Note: The collection of
ArcGIS.com basemaps may occasionally change, this means that the order or a particular set of maps being
returned may not always be the same.