File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < title > SuperMap MVT格式矢量瓦片</ title >
6+ < link rel ="stylesheet " href ="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css ">
7+ < link rel ="stylesheet " href ="http://cdn.bootcss.com/leaflet/1.0.3/leaflet.css ">
8+ </ head >
9+ < body style =" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0; ">
10+ < div id ="map " style ="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd "> </ div >
11+ < script type ="text/javascript " src ="http://cdn.bootcss.com/leaflet/1.0.3/leaflet.js "> </ script >
12+ < script type ="text/javascript " src ="../../dist/iclient9-leaflet.js "> </ script >
13+ < script type ="text/javascript ">
14+ var map , vectorLayer ,
15+ url = "http://113.209.64.227:8090/iserver/services/map-World/rest/maps/世界地图_Gray" ;
16+ map = L . map ( 'map' , {
17+ crs : L . CRS . EPSG4326 ,
18+ center : [ 0 , 0 ] ,
19+ maxZoom : 15 ,
20+ zoom : 1
21+ } ) ;
22+
23+ vectorLayer = L . supermap . tiledVectorLayer ( url , {
24+ tileSize : 512 ,
25+ format : L . supermap . VectorTileFormat . MVT ,
26+ cacheEnabled : true ,
27+ returnAttributes : true
28+ } ) . addTo ( map ) ;
29+
30+
31+ </ script >
32+ </ body >
33+ </ html >
You can’t perform that action at this time.
0 commit comments