changeset 298:87a17b1fccb5 gmap2

Zoom to zoom level 8 if we're zoomed less than that.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 20 Nov 2016 20:56:23 +0200
parents 537620c8f53b
children ce52a0b7b281
files markers.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/markers.js	Sun Nov 20 20:56:06 2016 +0200
+++ b/markers.js	Sun Nov 20 20:56:23 2016 +0200
@@ -50,6 +50,9 @@
 
 function pmapMyClick(i)
 {
+  if (pmap.getZoom() < 8)
+    pmap.setZoom(8);
+
   pmap.panTo(pmapMarkers[i].getPosition());
   setTimeout("pmapShowInfo("+ i +")", 1000);
 }