]> dev.renevier.net Git - syp.git/blobdiff - inc/templates_index.php
option to show popup near marker
[syp.git] / inc / templates_index.php
index a84a9c6ade648f0e1830310a4403d257d90d43f2..9f54d3b0b93e7d3703f59f4daad95b9db8f1a87d 100644 (file)
@@ -25,8 +25,8 @@ if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
     <link rel="stylesheet" href="./openlayers/theme/default/style.css" type="text/css">
     <link rel="stylesheet" href="./media/syp.css" type="text/css">
     <style type="text/css">
-        .olPopup {
-            <?php printf("width: %dpx;\n", $thumbsmaxsize)?>
+        .olPopup {
+            <?php printf("_width: %dpx;\n", ($thumbsmaxsize + 40))?>
         }
         .olPopup img {
             <?php printf("max-height: %dpx;\n", $thumbsmaxsize)?>
@@ -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]);
+
+            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>