Fx构造函数
# new PortalServiceParse()
Zondy.Service.PortalServiceParse
Example
// es 6
import PortalServiceParse from '@mapgis/webclient-es6-service';
let parse = new PortalServiceParse();
let url = parse.GetMapboxUrl(10, 'localhost', '6163', '世界地图');
// 浏览器
let parse = new Zondy.Service.PortalServiceParse();
let url = parse.GetMapboxUrl(10, 'localhost', '6163', '世界地图');
方法
# GetCapabilities(id, ip, port, serverName, baseUrlopt)
参数:
名称 | 类型 | 属性 | 描述 |
---|---|---|---|
id |
String | Number | 服务名称或者对应的Number型枚举值 |
|
ip |
String | 服务的IP地址 |
|
port |
String | 服务的端口地址 |
|
serverName |
String | 服务的名称 |
|
baseUrl |
String |
<optional> |
urlType 服务的地址类型 |
Example
let parse = new PortalServiceParse();
let url = parse.GetCapabilities(10, 'localhost', '6163', '世界地图');
# GetFeatureInfo(id, ip, port, serverName, baseUrlopt)
参数:
名称 | 类型 | 属性 | 描述 |
---|---|---|---|
id |
String | Number | 服务名称或者对应的Number型枚举值 |
|
ip |
String | 服务的IP地址 |
|
port |
String | 服务的端口地址 |
|
serverName |
String | 服务的名称 |
|
baseUrl |
String |
<optional> |
urlType 服务的地址类型 |
Example
let parse = new PortalServiceParse();
let url = parse.GetFeatureInfo(10, 'localhost', '6163', '世界地图');
# GetMap(id, ip, port, serverName, baseUrlopt)
参数:
名称 | 类型 | 属性 | 描述 |
---|---|---|---|
id |
String | Number | 服务名称或者对应的Number型枚举值 |
|
ip |
String | 服务的IP地址 |
|
port |
String | 服务的端口地址 |
|
serverName |
String | 服务的名称 |
|
baseUrl |
String |
<optional> |
urlType 服务的地址类型 |
Example
let parse = new PortalServiceParse();
let url = parse.GetMap(10, 'localhost', '6163', '世界地图');