diff --git a/ajaxmonuments.php b/ajaxmonuments.php index 9212ee8..d0e3592 100644 --- a/ajaxmonuments.php +++ b/ajaxmonuments.php @@ -72,11 +72,12 @@ if ($withImages == '1'){ $imageCondition = "image != ''"; } - $sql="SELECT country, lang, id, name, lat, lon, municipality, address, image, commonscat, monument_article, monument_random, source " . - "FROM monuments_all " . - "WHERE lon>=:left AND lon<=:right AND lat>=:bottom AND lat<=:top AND " . $imageCondition . " " . - "ORDER BY monument_random " . - "LIMIT " . $limit; + $sql = "SELECT country, lang, id, name, lat, lon, image, commonscat, " . + "monument_article, municipality, address, source, project " . + "FROM monuments_all " . + "WHERE lon>=:left AND lon<=:right AND lat>=:bottom AND lat<=:top " . + "AND " . $imageCondition . " " . + "LIMIT " . $limit; $stmt = $db->prepare($sql); $stmt->bindParam(':left', $left, PDO::PARAM_STR); $stmt->bindParam(':right', $right, PDO::PARAM_STR); @@ -107,6 +108,7 @@ $prop['municipality']=$row['municipality']; $prop['address']=$row['address']; $prop['lang']=$row['lang']; + $prop['project']=$row['project']; $prop['id']=$row['id']; $prop['name']=explode('|', $row['name']); $prop['name']=str_replace(array('[', ']'), '', $prop['name'][0]); diff --git a/wlm-maps.js b/wlm-maps.js index a18b306..f88e4f9 100644 --- a/wlm-maps.js +++ b/wlm-maps.js @@ -166,7 +166,7 @@ function getwebsite (country) { } function init() { - var osmUrl='//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; + var osmUrl='//tile.openstreetmap.org/{z}/{x}/{y}.png'; var osmAttrib=translatemsg('osm-attrib'); withimageicon=L.icon({ @@ -289,7 +289,7 @@ function setMarker(feature,latlng) { popuptext = popuptext + '
'+feature.properties.name+' | ||
'+feature.properties.name+' | ||
'+feature.properties.name+' |