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

  

posted @ 2017-03-09 20:54  marost  阅读(776)  评论(0编辑  收藏  举报