I found a couple of very old issues that are basically the same as this one, but they are all d7 issues and about much older version of the leaflet library.
So I can't really see this one as a duplicate.
Here goes:
Am running leaflet 8.x-1.x-dev version with leaflet library 1.0.3
* When I create a map with leaflet views, using a geofield to list nodes, all is well when I have multiple nodes on the map.
* However when I filter down the results until I have only one marker on the map, the map is greyed out:
* I need to zoom out one level to see the map with the one marker:
Anyone else encountered this?
Comment | File | Size | Author |
---|---|---|---|
#4 | 2916029_4.patch | 2.58 KB | strozx |
Screen Shot 2017-10-13 at 15.08.45.png | 49.42 KB | stijndmd | |
Screen Shot 2017-10-13 at 15.08.59.png | 373.21 KB | stijndmd |
Comments
Comment #2
benjamin.merkley CreditAttribution: benjamin.merkley commentedIm experiencing a similar issue
Comment #3
Jarnetb CreditAttribution: Jarnetb commentedI've found out when exactly this issue appears.
When you've only got 1 marker on the map, the zoom on the map will be at the deepest level. This makes the map grey out on retina screens.
I suggest 2 "workarounds".
Comment #4
strozx CreditAttribution: strozx at Agiledrop - Your Trusted Drupal Teammates commentedHello, I have written a patch. Basically the problem was that when the properties for the map were being filled the condition made it so that it always took values from $options variable but the actual value for the specific map was written in the $map variable. I also changed the minimum value to 0 for the allowed zoom, because some maps from leaflet_more_maps can have 0.
Regards Strozx.
Comment #6
itamair CreditAttribution: itamair as a volunteer commented