Pan to the selected features.
8003
public void onClick(ClickEvent clickEvent) {
		List<Feature> features = new ArrayList<Feature>();
 		for (VectorLayer layer : mapWidget.getMapModel().getVectorLayers()) {
			features.addAll(layer.getSelectedFeatureValues());
		}
		// only zoom when there where really some items selected
		if (features.size() > 0) {
			mapWidget.getMapModel().panToFeatures(features);
		}
	}
893972
def ms_panset(self, viewer, event, data_x, data_y,
                  msg=True):
        
        if self.canpan and (event.state == 'down'):
            self._panset(viewer, data_x, data_y, msg=msg)
        return True
106075
def features(self):
        """"""
        mycols = []
        for col in dfn.feature_names:
            if col in self:
                mycols.append(col)
        mycols.sort()
        return mycols
1296076
def panzoom(marks):
    
    return PanZoom(scales={
            'x': sum([mark._get_dimension_scales('x', preserve_domain=True) for mark in marks], []),
            'y': sum([mark._get_dimension_scales('y', preserve_domain=True) for mark in marks], [])
    })
368990
def add(self, pane):
        
        if isinstance(pane, list):
            initialised_panes = []
            for p in pane:
                initialised_panes.append(self.init_pane(p))
            self.panes.append(initialised_panes)
        else:    
            pane = self.init_pane(pane)
            self.panes.append(pane)
1264546
def pan(self, value):
        """"""
        assert len(value) == 2
        self._pan[:] = value
        self._constrain_pan()
        self.update()
304854
private void applyDirection() {
		String imgUrl = "";
		switch (direction) {
			case NORTH:
				panVector = new Coordinate(0, 1);
				imgUrl = northImage;
				break;
			case EAST:
				panVector = new Coordinate(1, 0);
				imgUrl = eastImage;
				break;
			case SOUTH:
				panVector = new Coordinate(0, -1);
				imgUrl = southImage;
				break;
			case WEST:
				panVector = new Coordinate(-1, 0);
				imgUrl = westImage;
				break;
		}
		controller = new PanArrowController(map, panVector);
		image = new Image(getId());
		image.setHref(imgUrl);
		image.setStyle(style);
		image.setBounds(new Bbox(0, 0, getWidth(), getHeight()));
	}
18137
def pan_cb(self, setting, value):
        """"""
        pan_x, pan_y = value[:2]

        self.logger.debug("pan set to %.2f,%.2f" % (pan_x, pan_y))
        self.redraw(whence=0)
884429
private function moveToNextAvailableFeature()
    {
        while (!count($this->features) && $this->position < count($this->paths)) {
            $this->features = $this->parseFeature($this->paths[$this->position]);
            $this->position++;
        }

        $this->currentFeature = array_shift($this->features);
    }
827181
function(evt) {
        var btn = evt.buttonElement;
        switch (btn.action) {
            case "panup": 
                this.map.pan(0, -this.getSlideFactor("h"));
                break;
            case "pandown": 
                this.map.pan(0, this.getSlideFactor("h"));
                break;
            case "panleft": 
                this.map.pan(-this.getSlideFactor("w"), 0);
                break;
            case "panright": 
                this.map.pan(this.getSlideFactor("w"), 0);
                break;
            case "zoomin": 
                this.map.zoomIn(); 
                break;
            case "zoomout": 
                this.map.zoomOut(); 
                break;
            case "zoomworld": 
                this.map.zoomToMaxExtent(); 
                break;
        }
    }
176556
function runListFeatures(callback) {
  var rectangle = {
    lo: {
      latitude: 400000000,
      longitude: -750000000
    },
    hi: {
      latitude: 420000000,
      longitude: -730000000
    }
  };
  console.log('Looking for features between 40, -75 and 42, -73');
  var call = client.listFeatures(rectangle);
  call.on('data', function(feature) {
      console.log('Found feature called "' + feature.name + '" at ' +
          feature.location.latitude/COORD_FACTOR + ', ' +
          feature.location.longitude/COORD_FACTOR);
  });
  call.on('end', callback);
}
1218152
function (dimensions) {
                var _this = this;
                return new Promise(function (resolve, reject) {
                    _this._paneDimensions = dimensions;
                    _this.paneDimensions.next(dimensions);
                    resolve();
                });
            }
461230
@VisibleForTesting
  public FeatureSet with(Set<Feature> newFeatures) {
    return new FeatureSet(union(features, newFeatures));
  }
984883
def panes(self):
        "  "
        result = []

        for s in self.splits:
            for item in s:
                if isinstance(item, Pane):
                    result.append(item)

        return result
626508
def pan_right(query, duration: nil)
      pan(query, {x: 10, y: 50}, {x: 90, y: 50}, duration: duration)
    end
139092
private void showFeatureInfo(Map<String, List<org.geomajas.layer.feature.Feature>> featureMap) {
		if (featureMap.size() > 0) {
			if (featureMap.size() == 1 && featureMap.values().iterator().next().size() == 1) {
				Layer<?> layer = (mapWidget.getMapModel().getLayer(featureMap.keySet().iterator().next()));
				if (null != layer) {
					org.geomajas.layer.feature.Feature featDTO = featureMap.values().iterator().next().get(0);
					Feature feature;
					if (layer instanceof VectorLayer) {
						feature = new Feature(featDTO, (VectorLayer) layer);
					} else {
						feature = new Feature(featDTO, null);
					}
					Window window = FeatureDetailWidgetFactory.createFeatureDetailWindow(feature, layer, false);
					window.setPageTop(mapWidget.getAbsoluteTop() + 25);
					window.setPageLeft(mapWidget.getAbsoluteLeft() + 25);
					window.setKeepInParentRect(true);
					window.draw();
				} else {
					Notify.error(MESSAGES.multiLayerFeatureInfoLayerNotFound());
				}
			} else {
				Window window = new MultiLayerFeatureInfoWindow(mapWidget, featureMap, featuresListLabels);
				window.setPageTop(mapWidget.getAbsoluteTop() + 10);
				window.setPageLeft(mapWidget.getAbsoluteLeft() + 50);
				window.draw();
			}
		} else {
			Notify.info(MESSAGES.multiLayerFeatureInfoNoResult());
		}
	}
100029
def set_features(self):
        """""""
        allpsms_str = readers.generate_psms_multiple_fractions_strings(
            self.mergefiles, self.ns)
        allpeps = preparation.merge_peptides(self.mergefiles, self.ns)
        self.features = {'psm': allpsms_str, 'peptide': allpeps}