new mapboxgl.supermap.MeasureService(url, options)
mapboxgl/services/MeasureService.js, line 6
Name | Type | Description |
---|---|---|
url |
string |
服务访问的地址。如:http://localhost:8090/iserver/services/map-world/rest/maps/World+Map 。 |
options |
Object |
交互服务时所需可选参数。如: |
Extends
- mapboxgl.supermap.ServiceBase
Methods
-
measure(params, type, callback){mapboxgl.supermap.MeasureService}
mapboxgl/services/MeasureService.js, line 40 -
测量
Name Type Description params
SuperMap.MeasureParameters 测量相关参数类
type
string 类型
callback
function 回调函数
Returns:
Type Description mapboxgl.supermap.MeasureService 测量服务 -
measureArea(params, callback)
mapboxgl/services/MeasureService.js, line 31 -
测面积
Name Type Description params
SuperMap.MeasureParameters 测量相关参数类
callback
function 回调函数
-
measureDistance(params, callback)
mapboxgl/services/MeasureService.js, line 21 -
测距
Name Type Description params
SuperMap.MeasureParameters 测量相关参数类
callback
function 回调函数