向量圖磚圖層 不能直接使用CVectorTileLayer的建構函式,您應該從已經存在的CMapDocument物件,透過NewVectorTileLayer新增CVectorTileLayer

Param: MapDocument

地圖文件。

Param: Name

客戶端自訂的圖層名稱

Param: UrlPatterns

網路來源的字串陣列

Param: Token

若有需要提供,Token

Example

var vLayerId = myMapDoc.NewVectorTileLayer("向量圖磚", ["http://127.0.0.1:8080/WMTS/{z}/{x}/{y}.vector.mvt"],0,"token")
var vLayerId = myMapDoc.NewVectorTileLayer("向量圖磚", ["http://127.0.0.1:8080/3826/WMTS/{z}/{x}/{y}.vector.mvt"],0,"token")

Hierarchy

Generated using TypeDoc