<< Click to Display Table of Contents >>

 

MapLayer (sName, ResourcePath)

 

 

Description

The map layer object

 

Position

MapLayer.js

 

 

Parameters

 

Parameter

Description

sName

The name of layer object

ResourcePath

The path of layer resource

 

 

Properties

 

Property

Description

none

none

 

 

Methods

 

Method

Description

getName()

To get the name of layer object.

putName(newVal)

To set the name of layer object.

getTitle()

To get the title of layer object.

putTitle(newVal)

To set the title of layer object.

getVisible()

To get the visibility of layer object.

putVisible(newVal)

To set the layer object visible.

getResourcePath()

To get the resource path of layer object.

getLeft()

To get the left boundary value of layer object.

getTop()

To get the top boundary value of layer object.

getRight()

To get the right boundary value of layer object.

getBottom()

To get the bottom boundary value of layer object.

getLayers()

To get the sublayer array of service layer.

getThematicLayer()

To get the thematic or active layer.

getFields()

To get the field content of layer.

getFeatureType()

To get the feature type.

Initialize(pMapBase)

To initialize layer.

RemoveSelf()

To remove the layer content built by users.

UpdateElement()

To update the map element of layer.

RebuildElement()

To rebuild the map element of layer.

ExecuteQuery(expr, bGeom, pSucceed, pFailed)

To query the layer content.

ExecuteUpdate(sID, sGeom, sValues, pSucceed, pFailed)

To update the content of the assigned feature.

ExecuteDelete(sID, pSucceed, pFailed)

To delete the assigned feature.

getSRName()

To get the name of coordinate system of layer.

 

 


©2015 Supergeo Technologies Inc.