diff --git a/js/api_gmaps.js b/js/api_gmaps.js
index 297274a..c2f504b 100755
--- a/js/api_gmaps.js
+++ b/js/api_gmaps.js
@@ -193,3 +193,7 @@ function gm_authFailure() {
message += '
' + lang['gmapilink'];
showModal(message);
};
+
+function updateSize() {
+ // ignore
+}
diff --git a/js/api_openlayers.js b/js/api_openlayers.js
index fc4cdc2..b1c8bcd 100755
--- a/js/api_openlayers.js
+++ b/js/api_openlayers.js
@@ -229,4 +229,6 @@ function expandUrl(url) {
return urls;
}
-
+function updateSize() {
+ // ignore
+}
diff --git a/js/api_openlayers3.js b/js/api_openlayers3.js
index 84901b6..e2bfbb8 100755
--- a/js/api_openlayers3.js
+++ b/js/api_openlayers3.js
@@ -26,7 +26,7 @@ var loadedAPI = 'openlayers3';
function init() {
- addCss('https://openlayers.org/en/v4.3.2/css/ol.css', 'ol3css');
+ addCss('https://openlayers.org/en/v4.6.4/css/ol.css', 'ol3css');
var controls = [
new ol.control.Zoom(),
@@ -409,3 +409,7 @@ function zoomToBounds(b) {
var bounds = ol.proj.transformExtent(b, 'EPSG:4326', 'EPSG:900913');
map.getView().fit(bounds);
}
+
+function updateSize() {
+ map.updateSize();
+}
diff --git a/js/main.js b/js/main.js
index e59b61e..e51c027 100755
--- a/js/main.js
+++ b/js/main.js
@@ -113,6 +113,7 @@ function toggleMenu(i) {
ebutton.style.right = '165px';
ebutton.innerHTML = 'ยป';
}
+ updateSize();
}
function getXHR() {
@@ -493,7 +494,7 @@ function loadMapAPI(api) {
} else {
addScript('js/api_openlayers3.js', 'mapapi');
urls.push('//cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList')
- urls.push('//openlayers.org/en/v4.3.2/build/ol.js');
+ urls.push('//openlayers.org/en/v4.6.4/build/ol.js');
}
waitAndLoad(mapapi, urls);
}