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; }