網路圖磚圖層 不能直接使用CTileMapLayer的建構函式,您應該從已經存在的CMapDocument物件,透過NewTileMapLayer新增CTileMapLayer
地圖文件。
客戶端自訂的圖層名稱
網路來源的字串陣列
矩陣資訊
是否使用代理,若輸入為字串則會當作代理網址直接串接,預設為false
若有需要提供,Token
var m = CMatrixSet.MakeByEPSG(3826) var vLayerId = myMapDoc.NewTileMapLayerByMatrixSet("我的行政區界圖", ["http://127.0.0.1/wmts?Layer=行政區界圖&style=default&TileMatrixSet=EPSG%3A3826&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={TileZ}&TileCol={TileC}&TileRow={TileR}"],m,0,"test") Copy
var m = CMatrixSet.MakeByEPSG(3826) var vLayerId = myMapDoc.NewTileMapLayerByMatrixSet("我的行政區界圖", ["http://127.0.0.1/wmts?Layer=行政區界圖&style=default&TileMatrixSet=EPSG%3A3826&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={TileZ}&TileCol={TileC}&TileRow={TileR}"],m,0,"test")
Generated using TypeDoc
網路圖磚圖層 不能直接使用CTileMapLayer的建構函式,您應該從已經存在的CMapDocument物件,透過NewTileMapLayer新增CTileMapLayer
Param: MapDocument
地圖文件。
Param: Name
客戶端自訂的圖層名稱
Param: UrlPatterns
網路來源的字串陣列
Param: MatrixSet
矩陣資訊
Param: WMTSProxy
是否使用代理,若輸入為字串則會當作代理網址直接串接,預設為false
Param: Token
若有需要提供,Token
Example