Lines Matching refs:zoom
74 private $zoom; variable in dokuwiki\\plugin\\openlayersmap\\StaticMap
101 * @param int $zoom
127 int $zoom, argument
140 $this->zoom = $zoom;
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:…
274 …[$this->zoom, $this->lat, $this->lon, $this->width, $this->height, serialize($this->markers), $thi…
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) argument
341 return (($long + 180) / 360) * 2 ** $zoom;
347 * @param int $zoom
350 public function latToTile(float $lat, int $zoom) argument
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))