Skip to content

Commit f0831f9

Browse files
修改leaflet数据查询示例中的数据集以及对应示例的预览图。review by zhurch
1 parent 7c82811 commit f0831f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/leaflet/02_getFeatureByBounds.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
var polygon = L.polygon([[-20, 20], [0, 20], [0, 40], [-20, 40], [-20, 20]], {color: 'red'});
3131
polygon.addTo(map);
3232
var boundsParam = new GetFeaturesByBoundsParameters({
33-
datasetNames: ["World:Countries"],
33+
datasetNames: ["World:Capitals"],
3434
bounds: polygon.getBounds()
3535
});
3636
L.supermap.getFeaturesService(url).getFeaturesByBounds(boundsParam).on("complete", function (serviceResult) {
3737
resultLayer = L.geoJSON(serviceResult.result, {
3838
onEachFeature: function (feature, layer) {
39-
layer.bindPopup("国家:" + feature.properties.COUNTRY);
39+
layer.bindPopup("首都:" + feature.properties.CAPITAL);
4040
}
4141
}).addTo(map);
4242
});
6.49 KB
Loading

0 commit comments

Comments
 (0)