mapbox/mercantile

Support for tiles of different sizes

Closed this issue · 1 comments

mercantile works well with tiles of standard size (512x512), but it does not support different sizes and returns invalid values (lat/lon exceeding possible values).

Workaround (POC):

default_size = 512
desired_size = 256
zoom += default_size/desired_size

@frafra the sides of mercantile tiles have fixed lengths in meters or decimal degrees but there is no concept of pixels here. These are tiles of 2-D space not imagery tiles.