Skip to content

Update plugin to be compliant with Leaflet 1.9.4 - #28

Open
babastienne wants to merge 3 commits into
consbio:mainfrom
babastienne:main
Open

babastienne wants to merge 3 commits into
consbio:mainfrom
babastienne:main

Conversation

@babastienne

@babastienne babastienne commented Feb 4, 2025

Copy link
Copy Markdown

This PR contains 3 commits :

1 - [ADD] Support for {r} format in urls

This improvement is to be up to date with Leaflet current behavior.
This {r} variable is used to be compatible with retina screens in some URLs and therefore need to be taken in consideration by this plugin.

More information : https://github.com/Leaflet/Leaflet/pull/2296/files

2 - [Improve] Examples file and documentation with working examples

While doing this fix I tested the plugin with last version of leaflet and it seems to be working fine. I decided to update exemples accordingly and fix the URL currently used that are not working anymore.

I also added URLs compliant with the {r} parameter to display and test my previous commit.

Contains :

  • Test successfully with Leaflet 1.9.4
  • Change layers to use working url
  • Update documentation in readme

3 - [DOC] Add new contributor

Because I was editing the readme and I saw this section I added myself as contributor. You can obviously remove this commit if you want, I don't care.

This support is to be up to date with Leaflet current behavior.
This {r} variable is used to be compatible with retina screens.

More information : https://github.com/Leaflet/Leaflet/pull/2296/files
- Test successfully with Leaflet 1.9.4
- Change layers to use working url
- Update documentation in readme
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.

1 participant