Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resolution based on zoom levels #130

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

Falke-Design
Copy link
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
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
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
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