L.supermap.imageMapLayer(url, options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of the image layer,eg:http://localhost:8090/iserver/services/map-china400/rest/maps/China. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
The optional parameters of image layer.
|
Fires
- L.supermap.imageMapLayer#event:load
- L.supermap.imageMapLayer#event:error
- L.supermap.imageMapLayer#event:loading
Example
L.supermap.imageMapLayer(url).addTo(map);
Extends
Events
-
error
ImageMapLayer.js, line 317 -
Triggered after the request layer failed to load.
-
load
ImageMapLayer.js, line 304 -
Triggered after the requested layer is loaded.
Properties:
Name Type Description bounds
L.bounds Layer bounds。
-
loading
ImageMapLayer.js, line 324 -
Triggered in request layer loading.
Properties:
Name Type Description bounds
L.bounds Layer bounds。
Methods
-
bringToFront()
ImageMapLayer.js, line 127 -
Top the current layer.
-
bringToFront()
ImageMapLayer.js, line 139 -
Set the current layer to the bottom.
-
getImageUrl(){string}
ImageMapLayer.js, line 172 -
Get the image layer request address, Subclasses can override implementations.
Returns:
Type Description string Request tile address. -
getOpacity(){number}
ImageMapLayer.js, line 151 -
Get layer transparency.
Returns:
Type Description number The transparency of the layer. -
setOpacity()
ImageMapLayer.js, line 160 -
Set the transparency.
-
update()
ImageMapLayer.js, line 333 -
Update the layer.