new GridCellInfosService(url, options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
new ol.supermap.GridCellInfosService(url, options);
</script>
// ES6 Import
import { GridCellInfosService } from '@supermapgis/iclient-ol';
new GridCellInfosService(url, options);
openlayers/services/GridCellInfosService.js, line 7
/**
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
服务地址。请求地图服务,URL 应为: http://{服务器地址}:{服务端口号}/iserver/services/{地图服务名}/rest/maps/{地图名}/tempLayersSet/{tempLayerID}/Rivers@World@@World。 |
||||||||||||||||||||
options |
Object |
参数。
|
Example
new GridCellInfosService(url)
.getGridCellInfos(param,function(result){
//doSomething
})
Extends
Methods
-
getGridCellInfos(params, callback){Promise}
openlayers/services/GridCellInfosService.js, line 40 -
获取某一地理位置所对应的栅格单元信息。
Name Type Description params
GetGridCellInfosParameters 数据服务栅格查询参数类。
callback
RequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。