diff --git a/examples/full-screen.html b/examples/full-screen.html index e3566d3709..a98b3672e2 100644 --- a/examples/full-screen.html +++ b/examples/full-screen.html @@ -73,7 +73,7 @@ Vienna - + diff --git a/examples/full-screen.js b/examples/full-screen.js index d321cc865f..d780501b87 100644 --- a/examples/full-screen.js +++ b/examples/full-screen.js @@ -35,7 +35,6 @@ var vienna = new ol.overlay.Overlay({ // Popup showing the position the user clicked var popup = new ol.overlay.Overlay({ - map: map, element: document.getElementById('popup') }); map.addEventListener('click', function(evt) { @@ -44,5 +43,6 @@ map.addEventListener('click', function(evt) { 'Welcome to ol3. The location you clicked was
' + ol.CoordinateFormat.hdms(ol.Projection.transformWithCodes( coordinate, 'EPSG:3857', 'EPSG:4326')); + popup.setMap(evt.map); popup.setCoordinate(evt.getCoordinate()); });