new ThemeService(url, options)
Usage
import { ThemeService } from '@supermapgis/iclient-ol';
new ThemeService(url, options);<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
new ol.supermap.ThemeService({paramsNames});
</script>
openlayers/services/ThemeService.js, line 7
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
地图服务地址。如 http://{ip}:{port}/iserver/services/map-world/rest/maps/World |
|||||||||||||||
options |
Object |
参数。
|
Example
new ThemeService(url,{
projection:projection
}).getThemeInfo(params,function(result){
//doSomething
});
Extends
ThemeService
-> ServiceBase
-> ol.Observable
Methods
-
getThemeInfo(params, callback){Promise}
openlayers/services/ThemeService.js, line 41 -
获取专题图信息。
Name Type Description paramsThemeParameters 专题图参数类。
callbackRequestCallback 可选 回调函数,该参数未传时可通过返回的 promise 获取结果。
Returns:
Type Description Promise Promise 对象。