Disable autoPan in examples

To avoid that the map is panned when showing
overlays on hover.
This commit is contained in:
tsauerwein
2015-02-24 09:33:40 +01:00
parent 5897cf55aa
commit 054dc81485
2 changed files with 6 additions and 3 deletions

View File

@@ -204,7 +204,8 @@ function createHelpTooltip() {
helpTooltip = new ol.Overlay({
element: helpTooltipElement,
offset: [15, 0],
positioning: 'center-left'
positioning: 'center-left',
autoPan: false
});
map.addOverlay(helpTooltip);
}
@@ -222,7 +223,8 @@ function createMeasureTooltip() {
measureTooltip = new ol.Overlay({
element: measureTooltipElement,
offset: [0, -15],
positioning: 'bottom-center'
positioning: 'bottom-center',
autoPan: false
});
map.addOverlay(measureTooltip);
}