Fix overlay z-index issue in overlay example
This commit is contained in:
committed by
Éric Lemoine
parent
86cfdf4da7
commit
59eaa89a54
@@ -37,14 +37,16 @@ map.addOverlay(marker);
|
||||
var vienna = new ol.Overlay({
|
||||
position: pos,
|
||||
element: document.getElementById('vienna'),
|
||||
stopEvent: true
|
||||
stopEvent: true,
|
||||
insertFirst: true
|
||||
});
|
||||
map.addOverlay(vienna);
|
||||
|
||||
// Popup showing the position the user clicked
|
||||
var popup = new ol.Overlay({
|
||||
element: document.getElementById('popup'),
|
||||
stopEvent: true
|
||||
stopEvent: true,
|
||||
insertFirst: true
|
||||
});
|
||||
map.addOverlay(popup);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user