Lines Matching refs:zoom
77 private int $zoom; variable in dokuwiki\\plugin\\openlayersmap\\StaticMap
104 * @param int $zoom
130 int $zoom, argument
143 $this->zoom = $zoom;
252 $zoom = $this->zoom;
254 $zoom = log(360 / ($resolution * $this->tileSize), 2);
257 if (is_finite($zoom) && $zoom < 15 && $zoom > 2) {
258 $this->zoom = floor($zoom);
262 …Logger::debug("StaticMap::autoZoom: Set autozoom options to: z: $this->zoom, lon: $this->lon, lat:…
278 $this->zoom,
295 …$this->mapCacheFile = $this->mapCacheBaseDir . "/" . $this->maptype . "/" . $this->zoom . "/cache_"
341 $this->centerX = $this->lonToTile($this->lon, $this->zoom);
342 $this->centerY = $this->latToTile($this->lat, $this->zoom);
350 * @param int $zoom
353 public function lonToTile(float $long, int $zoom): float argument
355 return (($long + 180) / 360) * 2 ** $zoom;
361 * @param int $zoom
364 public function latToTile(float $lat, int $zoom): float argument
366 … return (1 - log(tan($lat * M_PI / 180) + 1 / cos($lat * M_PI / 180)) / M_PI) / 2 * 2 ** $zoom;
390 [$this->zoom, $x, $y],
590 $this->tileSize * ($this->centerX - $this->lonToTile($markerLon, $this->zoom))
594 $this->tileSize * ($this->centerY - $this->latToTile($markerLat, $this->zoom))
713 … ($this->width / 2) - $this->tileSize * ($this->centerX - $this->lonToTile($p1->x(), $this->zoom))
716 … ($this->height / 2) - $this->tileSize * ($this->centerY - $this->latToTile($p1->y(), $this->zoom))
743 … ($this->width / 2) - $this->tileSize * ($this->centerX - $this->lonToTile($p1->x(), $this->zoom))
746 … ($this->height / 2) - $this->tileSize * ($this->centerY - $this->latToTile($p1->y(), $this->zoom))
749 … ($this->width / 2) - $this->tileSize * ($this->centerX - $this->lonToTile($p2->x(), $this->zoom))
752 … ($this->height / 2) - $this->tileSize * ($this->centerY - $this->latToTile($p2->y(), $this->zoom))
772 …$this->width / 2) - $this->tileSize * ($this->centerX - $this->lonToTile($point->x(), $this->zoom))
775 …this->height / 2) - $this->tileSize * ($this->centerY - $this->latToTile($point->y(), $this->zoom))