API / geotoolkit / map / util / WebMap / WebMap
ArcGIS Web Map layers parser
Constructors
Constructors
• Protected new WebMap(options?)
Creates WebMap
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
Methods
▸ getClassName(): string
string
▸ load(map, webmap): Promise<AbstractLayer[]>
Loads WebMap layers from the server and adds them to the map. When all added layers are loaded, the returned promise is resolved.
| Name | Type | Description |
|---|---|---|
map | Map | the map widget for the result |
webmap | string | ObjectType | the ArcGIS WebMap server url or WebMap JSON settings object |
Promise<AbstractLayer[]>
▸ Static getClassName(): string
string
▸ Static getInstance(options?): WebMap
Return instance of WebMap
| Name | Type | Description |
|---|---|---|
Optional options | Options | options. if options is passed, a new instance is created |
new instance
▸ Static load(map, webmap, httpservice?): Promise<AbstractLayer[]>
Loads WebMap layers from the server and adds them to the map. When all added layers are loaded, the returned promise is resolved.
| Name | Type | Description |
|---|---|---|
map | Map | the map widget for the result |
webmap | string | ObjectType | the ArcGIS WebMap server url or WebMap JSON settings object |
Optional httpservice | AbstractHttpService | http service to use for the webmap server |
Promise<AbstractLayer[]>
▸ Static setBingMapsKey(key): void
Sets the Bing Maps API key to use in the Webmap-created Bing layers. Get yours key at http://www.bingmapsportal.com/
| Name | Type | Description |
|---|---|---|
key | string | Bing Maps API key |
void
▸ Static setHttpRequestService(service): void
Sets the default httpservice to use in Webmap requests if no widget-specific service is provided.
| Name | Type | Description |
|---|---|---|
service | AbstractHttpService | http service to be used by default |
void