';
}
@@ -80,5 +86,24 @@
}
return $f;
}
+
+function staticmap($mapPoints)
+{
+$width = 300;
+$height = 300;
+ if (sizeof($mapPoints) < 1) return "";
+ if (sizeof($mapPoints) === 1) $center = "{$mapPoints[0][0]},{$mapPoints[0][1]}";
+ if (sizeof($mapPoints) > 1) $center = "{$mapPoints[0][0]},{$mapPoints[0][1]}"; //TODO average points
+ $markers = "";
+ foreach ($mapPoints as $index => $mapPoint) {
+ if (sizeof($mapPoints) === 1) {
+ $markers .= $mapPoint[0].",".$mapPoint[1].",ol-marker";
+ } else {
+ $markers .= $mapPoint[0].",".$mapPoint[1].",lightblue".($index+1);
+ }
+ }
+ return '
';
+}
?>
+