new GridCellInfosService(url, options)
Usage
import { GridCellInfosService } from '@supermapgis/iclient-ol';
new GridCellInfosService(url, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
new ol.supermap.GridCellInfosService({paramsNames});
</script>
openlayers/services/GridCellInfosService.js, line 7
/**
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
数据服务地址,如 http://{ip}:{port}/iserver/services/data-world/rest/data 。 |
|||||||||||||||
options |
Object |
参数。
|
Example
new GridCellInfosService(url)
.getGridCellInfos(param,function(result){
//doSomething
})
Extends
GridCellInfosService
-> ServiceBase
-> ol.Observable
Methods
-
getGridCellInfos(params, callback){Promise}
openlayers/services/GridCellInfosService.js, line 39 -
获取某一地理位置所对应的栅格单元信息。
Name Type Description paramsGetGridCellInfosParameters 数据服务栅格查询参数类。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。