首页 / 浏览问题 / WebGIS / 问题详情
iclient for leaflet组件中的数据服务查询组件
6v6
4EXP 2023年11月22日
iclient for leaflet组件中的数据服务查询组件的oneachfeature怎么使用呢?想实现点击弹窗显示指定的信息,但现在只显示默认的id信息。 var dataServiceQuery = new L.supermap.Components.DataServiceQuery( dataserviceUrl, ['Harbin:harbin'],{ onEachFeature: function (feature, layer) { layer.bindPopup("ID: " + feature.properties.SMID + " " + "区域:" + feature.properties.NAME); } } ).addTo(map);
...