openlayers 2 根据属性选择feature
var features=jiance_layer.getFeaturesByAttribute("name",name); if(features.length == 1){ var feature=features[0]; selectControl.select(feature); map.setCenter(feature.geometry.getBounds().getCenterLonLat()); break; }
var features=jiance_layer.getFeaturesByAttribute("name",name); if(features.length == 1){ var feature=features[0]; selectControl.select(feature); map.setCenter(feature.geometry.getBounds().getCenterLonLat()); break; }