Skip to content

Add resolution based on zoom levels#130

Merged
DanielJDufour merged 1 commit intoGeoTIFF:masterfrom
Falke-Design:feat/resolutionZoomLevel
Jul 10, 2023
Merged

Add resolution based on zoom levels#130
DanielJDufour merged 1 commit intoGeoTIFF:masterfrom
Falke-Design:feat/resolutionZoomLevel

Conversation

@Falke-Design
Copy link
Copy Markdown
Contributor

This feature makes it possible that the GeoTIFF is rendered differently based on the zoom level. This has the benefit, that we have a much better performance while moving the map and still having a high resolution on a high zoom level.

Example:
Resolution from zoom level 0 and higher is 32, if zoom is 10 or higher the resolution is 100 and from 18 and higher it is 200.

var layer = new GeoRasterLayer({
    georaster: georaster,
    resolution: {
        0: 32,
        10: 100,
        18: 200
    }
});

@DanielJDufour
Copy link
Copy Markdown
Member

Awesome! I think it would be nice to have a test added to this folder: https://github.com/GeoTIFF/georaster-layer-for-leaflet/tree/master/tests

Would you be interested in writing one? If not, I'd be happy to write one. I'm really appreciative of all the work you've put in and don't mean to add boring work.

@DanielJDufour
Copy link
Copy Markdown
Member

In either case, we can take that up in a subsequent PR :-)

@DanielJDufour DanielJDufour merged commit e51a3b9 into GeoTIFF:master Jul 10, 2023
@Falke-Design
Copy link
Copy Markdown
Contributor Author

Would you be interested in writing one? If not, I'd be happy to write one. I'm really appreciative of all the work you've put in and don't mean to add boring work.

I will create one 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants