<< Click to Display Table of Contents >>

SGSEarth.js

 

 

Namespace

SuperGIS.ServerEarth

Class

Initialize(funcCallback)






Class

MapLayer(object SGServer, object Layer, object SR)

control the map layers.

Method

Boolean

getVisible()

return if the MapLayer is visible or not.

Method

void

setVisible(Boolean v)

set if the MapLayer is visible or not.

Method

SR

getSpatialReference()

return the spatial reference object, which indicates the spatial reference of the layer.

Method

void

Query(string Expression, funcProcessResponse)

query the map layer using expressions.





Class

ResourceLayer(sgEarth, object SGServer, string Resource)

control the resource layer.

Method

string

getName()

return the name of the resource layer.

Method

SpatialReference

getSpatialReference()

return the spatial reference of the resource layer.

Method

array

getExtent()

return the extent of the resource layer.

Method

SRes

getResource()

return the resource layer

Method

objs[index]

getLayer()

return a specific layer in the resource layer.

Method

objs

getLayers()

return all the layers in the resource layer.

Method

plgs

getLegends()

get the layers and models, including vector, raster, and model.

Method

Boolean

getVisible()

return a Boolean value indicates the visibility of the resource.

Method

void

setVisible(Boolean v)

set a Boolean value indicates the visibility of the resource.

Method

Boolean

getLayerVisible()

return a Boolean value indicates the visibility of the resource layer.

Method

void

setLayerVisible(Boolean v)

set a Boolean value indicates the visibility of the resource layer.

Method

Boolean

getModelVisible()

return a Boolean value indicates the visibility of the resource model.

Method

void

setModelVisible(Boolean v)

set a Boolean value indicates the visibility of the resource model.

Method

opts.transparent

getTransparentColor()

return the transparent color.

Method

void

stTransparentColor()

set the transparent color.

Method

Boolean

render(object Scene, cam)

return a Boolean value indicates whether to render the resource layer.

Method

Boolean

renderModel(object Scene, cam)

return a Boolean value indicates whether to render the resource model.

Method

number

getElevation(number Lat, number Lon)

return the elevation at a specified latitude and longitude.

Method

Pick

Picking(cam, array Ori, array Dir)

return a pick object, which is the intersection coordinates of the camera direction and the resource layer.

Method

void

Query()

query the resource layer.





Class

JSONLODModel(object E, string Path, string Variant, string Name, locate)

control the JSONLODModel.

Method

string

getName()

return the name.

Method

Boolean

getVisible()

return a Boolean value indicates the visibility.

Method

void

setVisible()

set a Boolean value indicated the visibility.

Method

void

addModel(string Path, string Variant, number Resolution)

add a model.

Method

Boolean

render(object Scene, cam)

return a Boolean value indicates whether to render the model.

Method

Pick

Picking(cam, array Ori, array Dir)

return a pick object, which is the intersection coordinates of the camera direction and the model.





Class

JSONModel(object E, string srcPath, string Variant, number Resolution)

control the JSONModel.

Method

void

render(object Scene, cam)

render the model.

 

 


© 2017 Supergeo Technologies Inc.