pixelXToTileX method
Converts a pixel X coordinate to the tile X number.
@param pixelX the pixel X coordinate that should be converted. @param zoomLevel the zoom level at which the coordinate should be converted. @return the tile X number.
Implementation
int pixelXToTileX(double pixelX) {
assert(pixelX >= 0);
assert(pixelX <= _mapSize);
return min(pixelX / tileSize, scalefactor.scalefactor - 1).floor();
}