多边形Geojsonu要素图层
方法
创建PolylineGeoJsonFeatureLayer
参数描述:
名称 | 类型 | 描述 |
---|---|---|
name |
String | 可选 图层名称。 |
geojsonOrurl |
object | String | 可选 geojosn对象或者地址 |
option |
object | 可选 参数对象{ polygonHierarchy: undefined, height: 0, extrudedHeight: 0, vertexFormat: Cesium.VertexFormat.DEFAULT, stRotation: 0.0, ellipsoid: Cesium.Ellipsoid.WGS84, // optional The ellipsoid to be used as a reference. //granularity: CesiumMath.RADIANS_PER_DEGREE, // perPositionHeight: true, // optional Use the height of options.positions for each position instead of using options.height to determine the height. closeTop: true, // optional When false, leaves off the top of an extruded polygon open. closeBottom: true, //optional When false, leaves off the bottom of an extruded polygon open. arcType: Cesium.ArcType.GEODESIC, material: Cesium.Color.WHITE, show: true } |
disFnc |
function | 可选 回调函数 |
返回:
返回一个Cesium的datasource对象。
加载geojson动态单体化数据
参数描述:
名称 | 类型 | 描述 |
---|---|---|
name |
String | 可选 图层名称 |
geoOptions |
object | 可选 geojosn图层 url: 'http://192.168.1.40:8090/geoserver/gwc/service/wmts', layer:'nanjing', upperLevelLimit: 13, lowerLevelLimit: 13, minx:118.51721649800015, miny:31.863232407499936, maxx:118.91648798400001, maxy:32.27649160409993 |
styleOption |
object | 可选 图层样式 polygonHierarchy: undefined, height: 0, extrudedHeight: 0, vertexFormat: Cesium.VertexFormat.DEFAULT, stRotation: 0.0, ellipsoid: Cesium.Ellipsoid.WGS84, // optional The ellipsoid to be used as a reference. //granularity: CesiumMath.RADIANS_PER_DEGREE, // perPositionHeight: true, // optional Use the height of options.positions for each position instead of using options.height to determine the height. closeTop: true, // optional When false, leaves off the top of an extruded polygon open. closeBottom: true, //optional When false, leaves off the bottom of an extruded polygon open. arcType: Cesium.ArcType.GEODESIC, material: Cesium.Color.WHITE, show: true |
GroupID |
Float | 可选 组itemID |
disFnc |
object | 可选 回调函数 |
创建geojson矢量图层
参数描述:
名称 | 类型 | 描述 |
---|---|---|
name |
String | 可选 图层名称 |
geoOptions |
object | 可选 geojosn图层 url: 'http://192.168.1.40:8090/geoserver/gwc/service/wmts', layer:'nanjing', upperLevelLimit: 13, lowerLevelLimit: 13, minx:118.51721649800015, miny:31.863232407499936, maxx:118.91648798400001, maxy:32.27649160409993 |
styleOption |
object | 可选 图层样式 polygonHierarchy: undefined, height: 0, extrudedHeight: 0, vertexFormat: Cesium.VertexFormat.DEFAULT, stRotation: 0.0, ellipsoid: Cesium.Ellipsoid.WGS84, // optional The ellipsoid to be used as a reference. //granularity: CesiumMath.RADIANS_PER_DEGREE, // perPositionHeight: true, // optional Use the height of options.positions for each position instead of using options.height to determine the height. closeTop: true, // optional When false, leaves off the top of an extruded polygon open. closeBottom: true, //optional When false, leaves off the bottom of an extruded polygon open. arcType: Cesium.ArcType.GEODESIC, material: Cesium.Color.WHITE, show: true |
GroupID |
Float | 可选 组itemID |
disFnc |
object | 可选 回调函数 |
加载geojson动态单体化数据
参数描述:
名称 | 类型 | 描述 |
---|---|---|
name |
String | 可选 图层名称 |
geoOptions |
object | 可选 geojosn图层 url: 'http://192.168.1.40:8090/geoserver/gwc/service/wmts', layer:'nanjing', upperLevelLimit: 13, lowerLevelLimit: 13, minx:118.51721649800015, miny:31.863232407499936, maxx:118.91648798400001, maxy:32.27649160409993 |
styleOption |
object | 可选 图层样式 polygonHierarchy: undefined, height: 0, extrudedHeight: 0, vertexFormat: Cesium.VertexFormat.DEFAULT, stRotation: 0.0, ellipsoid: Cesium.Ellipsoid.WGS84, // optional The ellipsoid to be used as a reference. //granularity: CesiumMath.RADIANS_PER_DEGREE, // perPositionHeight: true, // optional Use the height of options.positions for each position instead of using options.height to determine the height. closeTop: true, // optional When false, leaves off the top of an extruded polygon open. closeBottom: true, //optional When false, leaves off the bottom of an extruded polygon open. arcType: Cesium.ArcType.GEODESIC, material: Cesium.Color.WHITE, show: true |
GroupID |
Float | 可选 组itemID |
disFnc |
object | 可选 回调函数 |