new getAbsoluteUri(relative, base){String}
是用于生成绝对 URI 的工具。
| Name | Type | Description |
|---|---|---|
relative |
String |
相对 Uri。 |
base |
String |
可选
基本 Uri。 |
Returns:
| Type | Description |
|---|---|
| String | 给定相对 Uri 的绝对 Uri。 |
Example
//absolute Uri will be "https://test.com/awesome.png";
var absoluteUri = SuperMap3D.getAbsoluteUri('awesome.png', 'https://test.com');