new ThematicTileLayer(id, url, layerID, params, hasLegend, hasEdge, hasLabel, chartID)
Parameters:
Name | Type | Description |
---|---|---|
id |
String | 图层名称. |
url |
String | 专题图服务地址。 |
layerID |
String | 图层ID。 |
params |
object | 专题图请求参数 |
hasLegend |
Boolean | 是否显示图例,放params中。 |
hasEdge |
Boolean | 是否绘制专题图符号的边线,放params中。 |
hasLabel |
Boolean | 是否绘制专题图符号的标注,放params中。 |
chartID |
String | 专题符号标识。 |
- Source:
- View2D/Layer/ThematicTileLayer.js
Example
(code) //添加专题图图层 var thmatic = new GeoGlobe.Layer.ThematicTileLayer({ id:"thematic" layerID: Cfg.map2DThematicLayerID_JS, params:{ "hasLegend": true, "legendType": 0, "hasEdge": true, "hasLabel": false, "hasBaseMap": true, "hasBaseMapLegend": true, "baseMapExampleColumnNums": 2 } chartID:Cfg.map2DThematicchartID_JS, }); (end)
Members
-
chartID :String
-
专题符号标识.
Type:
- String
- Default Value:
-
- null
- Source:
- View2D/Layer/ThematicTileLayer.js
-
colorSchemeID :String
-
色卡标识..
Type:
- String
- Default Value:
-
- null
- Source:
- View2D/Layer/ThematicTileLayer.js
-
format :String
-
图片样式..
Type:
- String
- Default Value:
-
- png
- Source:
- View2D/Layer/ThematicTileLayer.js
-
hasEdge :Boolean
-
是否绘制专题图符号的边线,默认值为false..
Type:
- Boolean
- Default Value:
-
- false
- Source:
- View2D/Layer/ThematicTileLayer.js
-
hasLabel :Boolean
-
是否绘制专题图符号的标注,默认值为false..
Type:
- Boolean
- Default Value:
-
- false
- Source:
- View2D/Layer/ThematicTileLayer.js
-
hasLegend :Boolean
-
是否显示图例,默认值为false..
Type:
- Boolean
- Default Value:
-
- false
- Source:
- View2D/Layer/ThematicTileLayer.js
-
id :String
-
专题图图层专属id..
Type:
- String
- Default Value:
-
- null
- Source:
- View2D/Layer/ThematicTileLayer.js
-
layerID :String
-
图层ID.
Type:
- String
- Default Value:
-
- null
- Source:
- View2D/Layer/ThematicTileLayer.js
-
legendPosition :String
-
图例显示方位,默认为右下角。左上角:tl、左下角:bl、右上角:tr、右下角:br.
Type:
- String
- Default Value:
-
- br
- Source:
- View2D/Layer/ThematicTileLayer.js
-
map :Object
-
图层添加的map.
Type:
- Object
- Default Value:
-
- null
- Source:
- View2D/Layer/ThematicTileLayer.js
-
maxExtent :Object
-
图层的最大范围.
Type:
- Object
- Default Value:
-
- null
- Source:
- View2D/Layer/ThematicTileLayer.js
-
version :String
-
服务版本.
Type:
- String
- Default Value:
-
- 1.0.0
- Source:
- View2D/Layer/ThematicTileLayer.js
Methods
-
getCapabilities(successFn, failFn)
-
获取服务能力描述信息。
Parameters:
Name Type Description successFn
function 请求成功的回调函数。 failFn
function 请求失败的回调函数。 - Source:
- View2D/Layer/ThematicTileLayer.js