} catch (Exception $e) {
}
-$bbox = $connection->mbr ();
if (defined ("THUMBSMAXSIZE") && (THUMBSMAXSIZE > 0)) {
$thumbsmaxsize = THUMBSMAXSIZE;
} else {
$thumbsmaxsize = 400; // default value;
}
+
+if (defined ("POPUPNEARFEATURE") && (POPUPNEARFEATURE)) {
+ $popupnearfeature = true;
+} else {
+ $popupnearfeature = false;
+}
?>
<html lang="<?php echo $lang?>">
<head>
propulsedByLink: "<?php ptrans('propulsed by <a href=\"http://syp.renevier.net\">syp</a>')?>",
noImageRegistered: "<?php ptrans('There is no image registered on this site.')?>"
};
- <?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");
- }
- ?>
+ var sypSettings = {
+ popupNearfeature: <?php printf ($popupnearfeature ? "true": "false")?>
+ };
</script>
<script src="./openlayers/OpenLayers.js" type="text/javascript"></script>
<script src="./js/syp.js" type="text/javascript"></script>