new AddressMatchService(url, options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
new ol.supermap.AddressMatchService(url, options);
</script>
// ES6 Import
import { AddressMatchService } from '@supermap/iclient-ol';
new AddressMatchService(url, options);
openlayers/services/AddressMatchService.js, line 7
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
服务地址。 |
||||||||||||||||||||
options |
Object |
参数。
|
Example
new AddressMatchService(url,options)
.code(function(result){
//doSomething
})
Extends
Methods
-
code(params, callback)
openlayers/services/AddressMatchService.js, line 38 -
获取正向地址匹配结果。
Name Type Description paramsGeoCodingParameter 正向匹配参数。
callbackRequestCallback 回调函数。
-
decode(params, callback)
openlayers/services/AddressMatchService.js, line 48 -
获取反向地址匹配结果。
Name Type Description paramsGeoDecodingParameter 反向匹配参数。
callbackRequestCallback 回调函数。