Skip to content

Commit 932f1af

Browse files
committed
leaflet对接iServer MVT格式矢量瓦片,并添加示例 review by songyumeng
1 parent 3648abf commit 932f1af

File tree

16 files changed

+2691
-2623
lines changed

16 files changed

+2691
-2623
lines changed

build/build.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
font-weight: normal;
4949
}
5050

51+
.deplistContent >div.contents{
52+
min-height:160px;
53+
}
54+
5155
.deplist {
5256
list-style: none;
5357
min-height: 120px;
@@ -57,7 +61,7 @@
5761
.deplist li {
5862
cursor: pointer;
5963
margin: 10px;
60-
width: 120px;
64+
width: 140px;
6165
height: 40px;
6266
background: #eeeeee;
6367
border: 1px solid #dddddd;

build/build.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,16 @@ function addGroup(client, title, description, div) {
8282
var ul = document.createElement('ul');
8383
ul.id = client + '_' + title;
8484
ul.className = 'deplist';
85+
var container = document.createElement('div');
86+
container.className = "contents";
8587
var h3 = document.createElement('h3');
8688
var span = document.createElement('span');
8789
h3.innerHTML = title;
8890
span.innerHTML = description;
8991
h3.appendChild(span);
90-
div.appendChild(h3);
91-
div.appendChild(ul);
92+
container.appendChild(h3);
93+
container.appendChild(ul);
94+
div.appendChild(container);
9295
}
9396

9497
function addModule(title, list, checked, name) {

build/deps.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ var deps = {
199199
"TileVectorLayer": {
200200
"name": "矢量瓦片",
201201
"src": [
202-
'./src/leaflet/overlay/TileVectorLayer.js',
203-
'./src/leaflet/overlay/PBFTileVectorLayer.js'
202+
'./src/leaflet/overlay/TileVectorLayer.js'
204203
]
205204
}
206205
}

0 commit comments

Comments
 (0)