Lines Matching refs: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";
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 argument
342 $maptype = match ($gmap ['baselyr']) {
352 $imgUrl .= "&size=" . str_replace("px", "", $gmap ['width']) . "x"
353 . str_replace("px", "", $gmap ['height']);
355 $imgUrl .= "¢er=" . $gmap ['lat'] . "," . $gmap ['lon'];
357 if ($gmap ['zoom'] > 17) {
360 $imgUrl .= "&zoom=" . $gmap ['zoom'];
382 * @param array $gmap
446 * @param array $gmap
452 private function getStaticOSM(array $gmap, array $overlay) argument
467 $size = str_replace("px", "", $gmap ['width']) . "x"
468 . str_replace("px", "", $gmap ['height']);
480 switch ($gmap ['baselyr']) {
515 $gmap ['lat'],
516 $gmap ['lon'],
517 $gmap ['zoom'],
521 $gmap ['gpxfile'],
522 $gmap ['kmlfile'],
523 $gmap ['geojsonfile'],
536 $imgUrl .= "?center=" . $gmap ['lat'] . "," . $gmap ['lon'];
537 $imgUrl .= "&size=" . str_replace("px", "", $gmap ['width']) . "x"
538 . str_replace("px", "", $gmap ['height']);
540 if ($gmap ['zoom'] > 16) {
544 $imgUrl .= "&zoom=" . $gmap ['zoom'];
567 * @param array $gmap
570 private function getBing(array $gmap, array $overlay): string argument
572 $maptype = match ($gmap ['baselyr']) {
579 $bbox = $this->calcBBOX($overlay, $gmap ['lat'], $gmap ['lon']);
591 $imgUrl .= "&ms=" . str_replace("px", "", $gmap ['width']) . "%2C"
592 . str_replace("px", "", $gmap ['height']);