Lines Matching refs:zoom

74     private $zoom;
101 * @param int $zoom
121 * Wheter or not to override zoom/lat/lon and zoom to the extent of gpx/kml and markers
127 int $zoom,
140 $this->zoom = $zoom;
190 * Calculate the lat/lon/zoom values to make sure that all of the markers and gpx/kml are on the map.
193 * buffer constant to enlarge (>1.0) the zoom level
249 $zoom = $this->zoom;
251 $zoom = log(360 / ($resolution * $this->tileSize), 2);
254 if (is_finite($zoom) && $zoom < 15 && $zoom > 2) {
255 $this->zoom = floor($zoom);
259 Logger::debug("StaticMap::autoZoom: Set autozoom options to: z: $this->zoom, lon: $this->lon, lat: $this->lat");
274 [$this->zoom, $this->lat, $this->lon, $this->width, $this->height, serialize($this->markers), $this->maptype, $this->kmlFileName, $this->gpxFileName, $this->geojsonFileName]
281 $this->mapCacheFile = $this->mapCacheBaseDir . "/" . $this->maptype . "/" . $this->zoom . "/cache_"
327 $this->centerX = $this->lonToTile($this->lon, $this->zoom);
328 $this->centerY = $this->latToTile($this->lat, $this->zoom);
336 * @param int $zoom
339 public function lonToTile(float $long, int $zoom)
341 return (($long + 180) / 360) * 2 ** $zoom;
347 * @param int $zoom
350 public function latToTile(float $lat, int $zoom)
352 return (1 - log(tan($lat * M_PI / 180) + 1 / cos($lat * M_PI / 180)) / M_PI) / 2 * 2 ** $zoom;
376 [$this->zoom, $x, $y],
562 $this->tileSize * ($this->centerX - $this->lonToTile($markerLon, $this->zoom))
566 $this->tileSize * ($this->centerY - $this->latToTile($markerLat, $this->zoom))
685 ($this->width / 2) - $this->tileSize * ($this->centerX - $this->lonToTile($p1->x(), $this->zoom))
688 ($this->height / 2) - $this->tileSize * ($this->centerY - $this->latToTile($p1->y(), $this->zoom))
715 ($this->width / 2) - $this->tileSize * ($this->centerX - $this->lonToTile($p1->x(), $this->zoom))
718 ($this->height / 2) - $this->tileSize * ($this->centerY - $this->latToTile($p1->y(), $this->zoom))
721 ($this->width / 2) - $this->tileSize * ($this->centerX - $this->lonToTile($p2->x(), $this->zoom))
724 ($this->height / 2) - $this->tileSize * ($this->centerY - $this->latToTile($p2->y(), $this->zoom))
744 ($this->width / 2) - $this->tileSize * ($this->centerX - $this->lonToTile($point->x(), $this->zoom))
747 ($this->height / 2) - $this->tileSize * ($this->centerY - $this->latToTile($point->y(), $this->zoom))