MapGISGeojsonProvider

new Cesium.MapGISGeojsonProvider(options)

MapGIS Geojson图层provider
Name Type Description
options Object 包含以下属性
Name Type Default Description
url String 发布的Geojson数据服务地址
maxCount Number 1000000 optional 该图层的矢量最大数量
idField String FID optional id字段名
tileFeaturesCount Number 400 optional 请求的瓦片矢量要素数量
clampToGround Boolean false optional 是否贴地
tileWidth Number 256 optional 瓦片宽度
tileHeight Number 256 optional 瓦片高度
minimumLevel Number 0 optional 瓦片最小级别
maximumLevel Number 0 optional 瓦片最大级别
tilingScheme Object optional 服务的平铺方案:经纬度GeographicTilingScheme,web墨卡托WebMercatorTilingScheme
extensions Array optional 扩展参数,需要确保服务端支持
renderer Object optional 专题图渲染规则,用于提供专题图服务
isDrawLabels Boolean optional 是否开启动态注记(需要属性字段支持)
labelsOption Object optional 动态注记选项,参考Style.LabelNoteStyle
labelDynamicEntityVisualizer Object optional 动态注记视图类,处理动态注记
Example:
// options.extensions 参数为自定义扩展参数,需要确保服务端支持此类参数生效
       var options = {
                         extensions: [   { key: 'token', value: 'tokentokentokentoken' },
                                         { key: 'filters', value: '1:ID>4,3:ID>1'}
                                     ]
                     };

       var mapGisVectorLayer = webGlobe.appendMapGISVectorLayer('http://localhost:6163/igs/rest/mrms/docs/二维矢量', {
           tileFeaturesCount: 400
       });

Members

获取代理
服务请求范围

readonly tileHeight : Number

瓦片高度

readonly tileWidth : Number

瓦片宽度
服务地址

Methods

原始矢量数据条件查询
Name Type Description
options Object 查询条件参数
Name Type Default Description
mapIndex Number 0 optional 地图在文档下的序号

requestVector(imageryProvider, x, y, level, request)Object

请求瓦片
Name Type Description
imageryProvider Object
x Number
y Number
level Number
request Object
Returns:
瓦片的Resource对象