tileXToLongitude method
Converts a tile X number at a certain zoom level to a longitude coordinate (left side of the tile).
@param tileX the tile X number that should be converted. @param zoomLevel the zoom level at which the number should be converted. @return the longitude value of the tile X number.
Implementation
@override
double tileXToLongitude(int tileX) {
assert(tileX >= 0);
// allow one more so that we can find the end of the tile from the left
assert(tileX <= _maxTileCount, "$tileX > ${_maxTileCount} of zoomlevel ${scalefactor.zoomlevel}");
double result = (tileX / _scalefactor.scalefactor * 360 - 180);
return result;
//return pixelXToLongitude(tileX * tileSize.toDouble());
}