Skip to content

Commit

Permalink
【fix】修复属性表例子报错、属性表mapboxgl和maplibre的地图加载失败 review by qiwei
Browse files Browse the repository at this point in the history
  • Loading branch information
shallowdream218 committed Mar 18, 2024
1 parent 7f61a4e commit 47919f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/mapboxgl/02_attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
'raster-tiles': {
attribution: attribution,
type: 'raster',
tiles: [baseUrl],
tiles: [baseUrl + '/zxyTileImage.png?z={z}&x={x}&y={y}'],
tileSize: 256
}
},
Expand Down
2 changes: 1 addition & 1 deletion examples/maplibregl/02_attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"raster-tiles": {
"attribution": attribution,
"type": "raster",
"tiles": [baseUrl],
"tiles": [baseUrl + '/zxyTileImage.png?z={z}&x={x}&y={y}'],
"tileSize": 256
}
},
Expand Down
2 changes: 1 addition & 1 deletion examples/openlayers/02_attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
new ol.supermap.FeatureService(url).getFeaturesBySQL(sqlParam).then(function (serviceResult) {
var tbody = document.querySelector('.tbody');
tbody.innerHTML = '';
serviceResult.result.features.forEach((feature) => {
serviceResult.result.features.features.forEach((feature) => {
var tr = document.createElement('tr');
var props = feature.properties;
fieldList.forEach((field) => {
Expand Down

0 comments on commit 47919f8

Please sign in to comment.