I'm not sure what has happened but the leaflet map has just completely disappeared. The beta 3 version works perfectly, however now that I've upgraded (the same issue occurs on 1.0) I have nothing where the maps used to be. When I inspect the html, there is just nothing in there where map used to be.
I am using views with ip_geoloc and the longitude and latitude fields are coming from the location module. Is anyone else having the same issues. I am pretty sure I've read through the readme properly and I've moved the library out of the dist folder. I have tried using the 7 and 7.1 libraries but neither of them work. The library warning is not appearing on the status page so the module can definitely see it.
Has anyone else found issues with this? Any help is much appreciated.
TIA
Comments
Comment #1
vlooivlerke commentedI have the same issue, the map dissapered when I upgraded.
Also there is some changes in the leaflet library folder structure when downloading the latest leaflet.js
http://leafletjs.com/download.html
Comment #2
jeffschulerI had this issue, too, using 7.x-1.1+1-dev, and leaflet 0.7.2 (and 0.7.1.) A Leaflet map generated by Views worked, but not a geofield Leaflet map display on a single node. After downgrading the lib to 0.6.4 it works again.
Comment #3
marc.groth commentedSame issue happened here... Was using 7.x-1.0-beta3. For what it's worth this was fixed by upgrading the leaflet module to 1.1 and the leaflet library to 0.7.1.
NOTE: Another thing that was tripping me up was having the library within the 'dist' folder (older versions of the module seemed to require this). This is no longer the case with the new version of the leaflet module. In other words, the library should read: /libraries/leaflet/leaflet.js
Although it sounds like the OP has it set up this way and is still having problems. Stupid question but have you tried clearing the cache? Also make sure the perms are set up correctly for the leaflet library (check the user and the chmod settings).
Comment #4
funana commentedJust wrote a comment in that other issue here https://drupal.org/comment/8520433#comment-8520433
Maybe related?
Comment #5
marc.groth commentedI think that's slightly different funana... In this case the map wasn't rendering at all (i.e. not even a grey area).
However my comment in another ticket may be of help to anybody facing this same issue: https://drupal.org/comment/8557819#comment-8557819
Comment #6
vlooivlerke commentedGetting the latest dev of leaflet and the 7.2 library with a fresh install fixed everything for me. I dont know why it works now as I have tried the same ting 3 weeks ago with no luck. But I am happy now
Comment #7
andsigno82 commentedSOLVED!
In my case the problem was indirectly issued by addressfield module.
If allow infinite addresses for one node, and use geofield to geocode from addressfield, then, in display, leaflet formatter breaks up.
Just got back to "1" value only and everything came back to work.
FYI
However, I also updated leaflet_markercluster to latest DEV
Comment #8
andsigno82 commentedUPDATE
Upgrade leaflet_markercluster to latest DEV IS MANDATORY TO MAKE THINGS WORK