Lines Matching refs:tileSize
41 private $tileSize = 256;
243 $resolutionVertical = 360 / ($zoomFactorPowered * $this->tileSize);
251 $zoom = log(360 / ($resolution * $this->tileSize), 2);
329 $this->offsetX = floor((floor($this->centerX) - $this->centerX) * $this->tileSize);
330 $this->offsetY = floor((floor($this->centerY) - $this->centerY) * $this->tileSize);
361 $startX = floor($this->centerX - ($this->width / $this->tileSize) / 2);
362 $startY = floor($this->centerY - ($this->height / $this->tileSize) / 2);
363 $endX = ceil($this->centerX + ($this->width / $this->tileSize) / 2);
364 $endY = ceil($this->centerY + ($this->height / $this->tileSize) / 2);
365 $this->offsetX = -floor(($this->centerX - floor($this->centerX)) * $this->tileSize);
366 $this->offsetY = -floor(($this->centerY - floor($this->centerY)) * $this->tileSize);
369 $this->offsetX += floor($startX - floor($this->centerX)) * $this->tileSize;
370 $this->offsetY += floor($startY - floor($this->centerY)) * $this->tileSize;
384 $tileImage = imagecreate($this->tileSize, $this->tileSize);
388 $destX = ($x - $startX) * $this->tileSize + $this->offsetX;
389 $destY = ($y - $startY) * $this->tileSize + $this->offsetY;
390 Logger::debug("imagecopy tile into image: $destX, $destY", $this->tileSize);
398 $this->tileSize,
399 $this->tileSize
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))