|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--TiledLayer
TiledLayer represents a Tiled layer on top of a map.
Defined in APIJS.js
| Constructor Summary | |
TiledLayer(<map> map, <string[]> layers, <string> serverPath)
Creates a new TiledLayer instance based on a map and an Array of layer names. |
|
| Method Summary | |
void
|
addCopyright(<GCopyright> copyright)
Adds a copyright to the collection (Google only). |
void
|
draw()
Forces the Layer to redraw. |
string[]
|
getCopyrights(<GLatLngBounds> bounds, <int> zoom)
Gets all copyrights that apply for the given bounds and zoom (Google only). |
string
|
getFormat()
Gets the format type. |
int
|
getMaxZoomLevel()
Returns the maximum zoom level. |
int
|
getMinZoomLevel()
Returns the minimum zoom level. |
float
|
getOpacity()
Returns the opacity of the layer |
string
|
getProperty(<string> name)
Returns the value associated with the property name. |
string
|
getStyleLayerDescriptorText()
Returns the SLD text. |
string
|
getStyleLayerDescriptorUrl()
Returns the SLD url. |
bool
|
getVisible()
Returns true if the layer is visible and false otherwise. |
int
|
getZIndex()
Gets the Zindex (VE Only). |
void
|
initialize()
Initializes the layer. |
void
|
setFormat(<int> val)
Sets the format type for the image layer. |
void
|
setMaxZoomLevel(<int> val)
Sets the maximum zoom level. |
void
|
setMinZoomLevel(<int> val)
Sets the minimum zoom level. |
void
|
setOpacity(<float> val)
Sets the opacity. |
void
|
setProperty(<string> name, <string> value)
Sets the value of a property. |
void
|
setStyleLayerDescriptorText(<string> val)
Sets the SLD text. |
void
|
setStyleLayerDescriptorUrl(<string> val)
Sets the SLD url. |
void
|
setVisible(<bool> bool)
Sets the visibility of the layer |
void
|
setZIndex(<int> val)
Sets the ZIndex (VE Only). |
| Constructor Detail |
TiledLayer(<map> map, <string[]> layers, <string> serverPath)
map - Virtual Earth or Google Maps map object
layers - Names of layers to enable on tile layer
serverPath - The optional server path.
| Method Detail |
void addCopyright(<GCopyright> copyright)
copyright - The copyright to add.
void draw()
string[] getCopyrights(<GLatLngBounds> bounds, <int> zoom)
bounds - The geographic boundary to which the copyrights apply
zoom - The zoom level to which the copyrights apply
string getFormat()
int getMaxZoomLevel()
int getMinZoomLevel()
float getOpacity()
string getProperty(<string> name)
name - Name of the property
string getStyleLayerDescriptorText()
string getStyleLayerDescriptorUrl()
bool getVisible()
int getZIndex()
void initialize()
void setFormat(<int> val)
val - The format of the layer.
void setMaxZoomLevel(<int> val)
val - The zoom level.
void setMinZoomLevel(<int> val)
val - The zoom level.
void setOpacity(<float> val)
val - The opacity level.
void setProperty(<string> name, <string> value)
name - Name of the property
value - Value of the property
void setStyleLayerDescriptorText(<string> val)
val - Text of sld file.
void setStyleLayerDescriptorUrl(<string> val)
val - Url to sld file.
void setVisible(<bool> bool)
bool - The visibility
void setZIndex(<int> val)
val - The ZIndex of the layer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||