$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?>">
<link rel="stylesheet" href="./media/syp.css" type="text/css">
<style type="text/css">
.olPopup {
- <?php printf("_width: %dpx;\n", ($thumbsmaxsize + 40))?>
+ <?php printf("_width: expression(Math.min(parseInt(this.scrollWidth) + 7, %d) + 'px');\n", ($thumbsmaxsize + 30))?>
+ }
+ .olPopup p {
+ <?php printf("max-width: %dpx;\n", $thumbsmaxsize - 20)?>
+
}
.olPopup img {
<?php printf("max-height: %dpx;\n", $thumbsmaxsize)?>
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>