question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Leaflet 1.0 compatibility

See original GitHub issue

Hi, 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:closed
  • Created 7 years ago
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
stefanocudinicommented, Mar 1, 2017

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)

2reactions
strepto42commented, Jul 19, 2017

PR created, sorry it took so long.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found