]> dev.renevier.net Git - syp.git/blobdiff - inc/html/index.php
option to show popup near marker or on a corner
[syp.git] / inc / html / index.php
index 8382159b0686a9f5ff0c04c50b7e20c84e381e3f..5de0a53497bb05650d9a294cdfe5f4e6dd3bc674 100644 (file)
@@ -16,10 +16,10 @@ if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
     $thumbsmaxsize = 400; // default value;
 }
 
-if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) {
-    $popupnearfeature = true;
+if (defined ("POPUPPOS")) {
+    $popuppos = POPUPPOS;
 } else {
-    $popupnearfeature = false;
+    $popuppos = 3;
 }
 ?>
 <html lang="<?php echo $lang?>">
@@ -52,7 +52,7 @@ if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) {
             noImageRegistered: "<?php ptrans('There is no image registered on this site.')?>"
         };
         var sypSettings =  {
-            popupNearfeature: <?php printf ($popupnearfeature ? "true": "false")?>
+            popupPos: <?php printf ($popuppos)?>
         };
     </script>
     <script src="./openlayers/OpenLayers.js" type="text/javascript"></script>