Leaflet 1.0 compatibility
See original GitHub issueHi, thanks for this awesome plugin!
I am trying to recreate it on my own scripts and it seems that some of your paths on the example folders are missing or directing to the wrong directory. For instang in group-layers.html there is a link referring to:
<link rel="stylesheet" href="/maps/leaflet/dist/leaflet.css" />
which seems that “maps” folder is not on the master folder. Perhaps just the leaflet.css and leaflet.js from the last versions of Leaflet?
Best,
Issue Analytics
- State:
- Created 7 years ago
- Comments:21 (4 by maintainers)
Top Results From Across the Web
Releases · Leaflet/Leaflet - GitHub
Embracing modern JavaScript. To maintain backwards compatibility, Leaflet is written entirely in ES5, a version of JavaScript supported by legacy browsers.
Read more >Plugins - Leaflet - a JavaScript library for interactive maps
A Leaflet Plugin that renders Mapbox Vector Tiles on canvas. Compatible with Leaflet 0.7. x only. Display gridded vector data (GeoJSON or TopoJSON...
Read more >Drupal/leaflet:^10.0' compatibility
Problem/Motivation A new major version of Leaflet module has been ... 1.1.1 requires drupal/leaflet * -> found drupal/leaflet[1.0.0, ...
Read more >Leaflet-underneath NPM | npm.io
NPM version Leaflet 1.0 compatible! ... With a normal tile layer, the user can't interact to find out more about a location, since...
Read more >leaflet.glmarkers | Yarn - Package Manager
There is an interactive demo! That demo uses some predefined data and one predefined texture, and lets you play with the shaders. Compatibility....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi @skipper71 I have already identified the cause of the problem is in this difference type of property to storing the list of layers defined for L.Control.Layers of Leaflet
in version 1.0.x: https://github.com/Leaflet/Leaflet/blob/master/src/control/Control.Layers.js#L83 is an Array []
in version 0.7.x: https://github.com/Leaflet/Leaflet/blob/0.7/src/control/Control.Layers.js#L15 is an Object {}
I’m thinking about how to solve easily and maintain compatibility, this plugin now use an Array(0.7.x)
PR created, sorry it took so long.