Class: WebMap

ol.supermap.WebMap

The web map class. It is used to dock iPortal/Online map

new ol.supermap.WebMap(id, options)

WebMap.js, line 28
Name Type Description
id string

id of the iPortal/Online map.

options Object

The optional parameters.

Name Type Default Description
target string 'map' optional

The type of the target.

map ol.map optional

The object of map.

server string 'http://www.supermapol.com' optional

The URL of iPortal/Online service.

credentialKey string 'key' optional

The credential.

credentialValue string optional

The credential value.

Extends

  • ol.Observable

Methods

addLayer(layer)

WebMap.js, line 152

Add the layer.

Name Type Description
layer ol.layer.Vector

ol.layer.Vector.

load()

WebMap.js, line 68

Add map layer after logging in.