MapGIS矢量地图文档
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
包含以下属性
|
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
layers参数,用于过滤图层
readonly proxy : Proxy
获取代理
readonly rectangle : Rectangle
服务请求范围
瓦片高度
瓦片宽度
服务地址
Methods
原始矢量数据条件查询
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
查询条件参数
|
Example:
var options1 = {
pageCount: 120,
where: 'mpArea>20',
orderField: mpArea,
isAsc: true
};
var idArray = [1,4,8,36,89];
var options2 = {
objectIds: idArray
};
//参照DrawElement对应绘图返回值
var p = Cartesian3.fromDegrees(120.9804, 31.3443, 0);
var point = {
position: p,
neardistance: 100
};
var circle = {
center: p,
radius: 1
};
var rect = new Cesium.Rectangle(west, south, east, north);
var polypositions = Cartesian3.fromDegreesArray([120.9804, 31.3443, 121.0682, 31.3604, 121.0682, 31.3443]);
var polyline = {
positions: polypositions,
neardistance: 100
};
var polygon = {
positions: polypositions
};
var optionsRect = {
geometryType: 'rect',
geometry: rect
};
var mapGisVectorLayer = webGlobe.appendMapGISVectorLayer('http://localhost:6163/igs/rest/mrms/docs/二维矢量',options);
MapGISVectorLayer.queryFeatures(options1).then(function(data){
doSomething(data);
})
请求瓦片
Name | Type | Description |
---|---|---|
imageryProvider |
Object | |
x |
Number | |
y |
Number | |
level |
Number | |
request |
Object |
Returns:
瓦片的Resource对象