0
我有物品包在我的lines1
物品發送到傳單。如何從傳單中讀取JsonObj的屬性?
當遍歷JsonObj routesMap
數組時,我如何與這些屬性相關?
function setDddCallback() {
$('select[name="dropdown"]').change(function() {
// var item = this.selectedIndex;
var value = this.value;
routesLayerGroup.eachLayer(function(layer) {
try {
if (layer.feature.geometry.properties.alt_id == value) {
highlightFeature({
"target": layer
})
} else {
resetHighlight({
"target": layer
})
}
} catch (e) {}
});
});
}
在我的代碼layer.feature
是undefined