Overlay stopEvent and insertFirst default to true

This commit is contained in:
Éric Lemoine
2013-10-30 09:49:38 +01:00
parent d7c696fc76
commit 16b817b830
6 changed files with 18 additions and 20 deletions

View File

@@ -39,7 +39,8 @@ geolocation.on('change', function() {
var marker = new ol.Overlay({
element: /** @type {Element} */ ($('<i/>').addClass('icon-flag').get(0)),
positioning: ol.OverlayPositioning.BOTTOM_LEFT
positioning: ol.OverlayPositioning.BOTTOM_LEFT,
stopEvent: false
});
map.addOverlay(marker);
// bind the marker position to the device location.