roblabs / maps-for-non-profits

Open Source Maps for non-profits
https://github.com/roblabs/maps-for-non-profits/releases
Apache License 2.0
0 stars 1 forks source link

Stretched Tiles on Leaflet & MapLibre for non-square tiles #5

Open roblabs opened 2 months ago

roblabs commented 2 months ago

The Tile Cutter for "image pyramids" from Zoomable.ca has zoomify tile support. When cutting tiles for JPEG, the Zoomable tool creates non-square tiles. This typically happens around the edges of the input image. As well, JPEG images do not have a transparency layer.

Using the Zoomify Tile Service

This properly displays the San Diego map that was tile cut by the Zoomable.ca plugin for Photoshop.

Zoomable also has a service that allows you to upload a file


Same Tiles Rendered with Leaflet & MapLibre

These map rendering SDKs expect square tiles usually 256x256 or 512x512 for rendering raster images.


Wish List for Zoomable output

Wish List for Leaflet & MapLibre


Screenshot of rendering in Leaflet


The original map for the Sierra Club of San Diego

roblabs commented 1 month ago

Leaflet method to display image files without Geographic coordinates

A solution for those using Leaflet. Set bounds based on an image dimensions, and use L.CRS.Simple.


Features