Skip to content

Commit 47919f8

Browse files
【fix】修复属性表例子报错、属性表mapboxgl和maplibre的地图加载失败 review by qiwei
1 parent 7f61a4e commit 47919f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/mapboxgl/02_attributes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
'raster-tiles': {
6060
attribution: attribution,
6161
type: 'raster',
62-
tiles: [baseUrl],
62+
tiles: [baseUrl + '/zxyTileImage.png?z={z}&x={x}&y={y}'],
6363
tileSize: 256
6464
}
6565
},

examples/maplibregl/02_attributes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"raster-tiles": {
5959
"attribution": attribution,
6060
"type": "raster",
61-
"tiles": [baseUrl],
61+
"tiles": [baseUrl + '/zxyTileImage.png?z={z}&x={x}&y={y}'],
6262
"tileSize": 256
6363
}
6464
},

examples/openlayers/02_attributes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
new ol.supermap.FeatureService(url).getFeaturesBySQL(sqlParam).then(function (serviceResult) {
124124
var tbody = document.querySelector('.tbody');
125125
tbody.innerHTML = '';
126-
serviceResult.result.features.forEach((feature) => {
126+
serviceResult.result.features.features.forEach((feature) => {
127127
var tr = document.createElement('tr');
128128
var props = feature.properties;
129129
fieldList.forEach((field) => {

0 commit comments

Comments
 (0)