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

@@ -36,7 +36,8 @@ var nameElement = document.getElementById('country-name');
var infoOverlay = new ol.Overlay({
element: infoElement,
offset: [15, 15],
stopEvent: false
stopEvent: false,
autoPan: false
});
map.addOverlay(infoOverlay);