File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 21
21
22
22
] , allOverlays : true
23
23
} ) ;
24
- tiandituLayer = new SuperMap . Layer . Tianditu ( ) ;
25
- tianMarkerLayer = new SuperMap . Layer . Tianditu ( ) ;
24
+ tiandituLayer = new SuperMap . Layer . WMTS ( {
25
+ name : "vec" ,
26
+ url : "http://t0.tianditu.com/vec_c/wmts?tk=1d109683f4d84198e37a38c442d68311" ,
27
+ layer : "vec" ,
28
+ style : "default" ,
29
+ matrixSet : "c" ,
30
+ format : "tiles" ,
31
+ opacity : 1 ,
32
+ requestEncoding : "KVP"
33
+ } ) ;
34
+ tianMarkerLayer = new SuperMap . Layer . WMTS ( {
35
+ name : "vec" ,
36
+ url : "http://t0.tianditu.com/cva_c/wmts?tk=1d109683f4d84198e37a38c442d68311" ,
37
+ layer : "cva" ,
38
+ style : "default" ,
39
+ matrixSet : "c" ,
40
+ format : "tiles" ,
41
+ opacity : 1 ,
42
+ requestEncoding : "KVP"
43
+ } ) ;
26
44
tianMarkerLayer . layerType = "cva" ;
27
45
tianMarkerLayer . isLabel = true ;
28
46
map . addControl ( new SuperMap . Control . MousePosition ( ) ) ;
You can’t perform that action at this time.
0 commit comments