diff --git a/js/script2.js b/js/script2.js index 441659c..96bb9a8 100644 --- a/js/script2.js +++ b/js/script2.js @@ -126,7 +126,7 @@ function changeMapBounds() { function getBounds() { const extent = OLMap.getView().calculateExtent(OLMap.getSize()) - point = new OpenLayers.LonLat(extent[0],extent[1]).transform('EPSG:4326', 'EPSG:3857'); + point = new ol.LonLat(extent[0],extent[1]).transform('EPSG:4326', 'EPSG:3857'); console.log(point) console.log(extent[2], extent[3]) }