Lines Matching defs:gmap

103         $gmap          = $this->extractParams($str_params);
110 if (stripos($gmap ['baselyr'], 'google') !== false) {
112 $imgUrl .= $this->getGoogle($gmap, $overlay);
114 } elseif (stripos($gmap ['baselyr'], 'bing') !== false) {
118 $_firstimageID = $this->getStaticOSM($gmap, $overlay);
126 $imgUrl .= $this->getBing($gmap, $overlay) . "&.png";
128 /* elseif (stripos ( $gmap ['baselyr'], 'mapquest' ) !== false) {
132 $_firstimageID = $this->getStaticOSM ( $gmap, $overlay );
138 $imgUrl .= $this->_getMapQuest ( $gmap, $overlay );
144 $_firstimageID = $this->getStaticOSM($gmap, $overlay);
152 $imgUrl .= "?" . str_replace("px", "", $gmap ['width']) . "x"
153 . str_replace("px", "", $gmap ['height']);
161 $imgUrl .= " |" . $gmap ['summary'] . " }}";
163 $mapid = $gmap ['id'];
166 foreach ($gmap as $key => $val) {
172 unset($gmap ['id']);
204 if (!empty($gmap ['kmlfile'])) {
211 <td class="txt" colspan="3">KML track: ' . $this->getFileName($gmap ['kmlfile']) . '</td>
214 if (!empty($gmap ['gpxfile'])) {
222 <td class="txt" colspan="3">GPX track: ' . $this->getFileName($gmap ['gpxfile']) . '</td>
225 if (!empty($gmap ['geojsonfile'])) {
233 <td class="txt" colspan="3">GeoJSON track: ' . $this->getFileName($gmap ['geojsonfile']) . '</td>
237 $autozoom = empty($gmap ['autozoom']) ? $this->getConf('autoZoomMap') : $gmap ['autozoom'];
243 return [$mapid, $js, $mainLat, $mainLon, $poitable, $gmap ['summary'], $imgUrl, $_firstimageID];
258 $gmap = $this->dflt;
259 foreach ($gmap as $key => &$value) {
269 if (isset($gmap [$key])) {
272 $gmap [$key] = $val;
275 $gmap [$key] = $val;
277 $gmap [$key] = strtolower($val);
281 return $gmap;
333 * @param array $gmap
336 private function getGoogle(array $gmap, array $overlay): string
342 switch ($gmap ['baselyr']) {
362 $imgUrl .= "&size=" . str_replace("px", "", $gmap ['width']) . "x"
363 . str_replace("px", "", $gmap ['height']);
365 $imgUrl .= "&center=" . $gmap ['lat'] . "," . $gmap ['lon'];
367 if ($gmap ['zoom'] > 17) {
370 $imgUrl .= "&zoom=" . $gmap ['zoom'];
392 * @param array $gmap
396 private function _getMapQuest($gmap, $overlay) {
401 switch ($gmap ['baselyr']) {
416 $imgUrl .= "?center=" . $gmap ['lat'] . "," . $gmap ['lon'];
418 if ($gmap ['zoom'] > 16) {
421 $imgUrl .= "&zoom=" . $gmap ['zoom'];
425 // $bbox=$this->calcBBOX($overlay, $gmap['lat'], $gmap['lon']);
431 $imgUrl .= "&size=" . str_replace ( "px", "", $gmap ['width'] ) . "," . str_replace ("px","",$gmap['height']);
456 * @param array $gmap
462 private function getStaticOSM(array $gmap, array $overlay)
477 $size = str_replace("px", "", $gmap ['width']) . "x"
478 . str_replace("px", "", $gmap ['height']);
490 switch ($gmap ['baselyr']) {
525 $gmap ['lat'],
526 $gmap ['lon'],
527 $gmap ['zoom'],
531 $gmap ['gpxfile'],
532 $gmap ['kmlfile'],
533 $gmap ['geojsonfile'],
546 $imgUrl .= "?center=" . $gmap ['lat'] . "," . $gmap ['lon'];
547 $imgUrl .= "&size=" . str_replace("px", "", $gmap ['width']) . "x"
548 . str_replace("px", "", $gmap ['height']);
550 if ($gmap ['zoom'] > 16) {
554 $imgUrl .= "&zoom=" . $gmap ['zoom'];
577 * @param array $gmap
580 private function getBing(array $gmap, array $overlay): string
582 switch ($gmap ['baselyr']) {
601 $bbox = $this->calcBBOX($overlay, $gmap ['lat'], $gmap ['lon']);
611 //$imgUrl .= "&ms=" . str_replace ( "px", "", $gmap ['width'] ) . ","
612 // . str_replace ( "px", "", $gmap ['height'] );
613 $imgUrl .= "&ms=" . str_replace("px", "", $gmap ['width']) . "%2C"
614 . str_replace("px", "", $gmap ['height']);