Class: webmap

L.supermap.webmap

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

L.supermap.webmap(id, options)

WebMap.js, line 60
Name Type Description
id number

id of the iPortal/Online map

options Object

The optional parameters.

Name Type Default Description
map string 'map' optional

id of map container.

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

The URL of iPortal/Online service.

featureLayerPopupEnable boolean true optional

Weather the featureLayerPopup is enabled.

featureLayerPopup string optional

The information of the layer popup.

credentialValue string optional

The credential value.

credentialKey string 'key' optional

The credential key.

attribution string 'Map Data <span>© <a href='http://www.supermapol.com' title='SuperMap Online' target='_blank'>SuperMap Online</a></span>' optional

he copyright information.

Fires

Extends

Events

coordconvertfailed

WebMap.js, line 1151

Triggered after the coordinate conversion failed.

Properties:
Name Type Description
err Object

Error object.

coordconvertsuccess

WebMap.js, line 1089

Triggered after the coordinate conversion is successful.

Properties:
Name Type Description
newCoor L.latLng

The coordinates after the conversion was successful.

featuremousemove

WebMap.js, line 1303

Fires when the mouse moves over the feature.

Properties:
Name Type Description
feature SuperMap.Feature.Vector

The element currently being moved to.

featureselected

WebMap.js, line 1283

Click on a feature to trigger after the feature exists. Set the selected features.

Properties:
Name Type Description
feature SuperMap.Feature.Vector

Clicked on the feature.

featureunselected

WebMap.js, line 1267

Reset selected features are empty.

Properties:
Name Type Description
feature SuperMap.Feature.Vector

The feature selected before resetting.

maploaded

WebMap.js, line 199

Triggered when the basemap is loaded.

Properties:
Name Type Description
map L.Map

Leaflet Map object.