]> dev.renevier.net Git - syp.git/blobdiff - inc/templates_index.php
option to show popup near marker
[syp.git] / inc / templates_index.php
index 722daa9479bbdbe7a1ec1d087c4d2d558d162260..9f54d3b0b93e7d3703f59f4daad95b9db8f1a87d 100644 (file)
@@ -49,6 +49,12 @@ if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
         <?php
             printf ("var sypOrig = [%.18F, %.18F, %.18F, %.18F];\n",
                     $bbox [0], $bbox [1], $bbox [2], $bbox [3]);
         <?php
             printf ("var sypOrig = [%.18F, %.18F, %.18F, %.18F];\n",
                     $bbox [0], $bbox [1], $bbox [2], $bbox [3]);
+
+            if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) {
+                printf ("var sypPopupNearFeature = true;\n");
+            } else {
+                printf ("var sypPopupNearFeature = false;\n");
+            }
         ?>
     </script>
     <script src="./openlayers/OpenLayers.js" type="text/javascript"></script>
         ?>
     </script>
     <script src="./openlayers/OpenLayers.js" type="text/javascript"></script>