Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Not displayed map with a single address at a scale greater than 13. If more than one address - everything is fine. If one - card only appears when you click on the marker.
Comment | File | Size | Author |
---|---|---|---|
#14 | 2015-08-16 09-28-06 Адреса на карте (Содержимое) | Нидбин Краснодар.png | 29.07 KB | shevgeny |
Comments
Comment #2
RdeBoerHi shevgeny,
When "autobox" is on and there is only one marker the map zooms in one level beyond what it should. When you click the minus sign one time, the map shows, right?
EDIT: just saw in your video that clicking the minus does not work either for you...
Yep I've seen this before. It's a Leaflet issue. In fact I believe it is a Leaflet JS issue (not the Drupal module but the Leaflet Javascript library).
Maybe it has already been reported in the Leaflet issue queue, maybe not. Have a look.
Rik
Comment #3
shevgenyat a scale of 13 or closer did not work (no zoom button or the card itself or drag). In order to work, you need to click on the marker.
Comment #4
shevgenyAnd from where to download the library? I found at least three sources, and one that is listed on the page module — http://leaflet.cloudmade.com/ — dead link.
1) http://leafletjs.com/download.html
2) https://github.com/Leaflet/Leaflet
3) https://github.com/rstudio/leaflet
Comment #5
RdeBoerI would use http://leafletjs.com/download.html
Comment #6
shevgeny@RdeBoer, so, I checked. Faulting Module IPGV & M! Maps on pure Leaflet API module, work perfectly. But their functional I, alas, is not enough.
See — http://youtu.be/Lp5S8DXuen4
Comment #7
shevgenyHi, Rik!
Is there any idea, what could be the reason for such behavior?
I tested (http://youtu.be/Lp5S8DXuen4), if you do not use your module, scaling occurs properly. But I would like to use the functionality of your module.
Comment #8
RdeBoerHi shevgeny,
I'll have a closer look soon.
Rik
Comment #9
RdeBoerI've spent nearly an hour trying to reproduce this but I can't.
There is a canned View block that comes with IPGV&M called "Map (Leaflet) centered on visitor's location".
Can you please try if it happens with that one? Maybe put the block/view on the front page.
Enable the "Set my location" block from IPGV&M at the same time, so you can set the location of the single marker on the map.
I was using IPGV&M 7.x-1.x-dev + Leaflet 7.x-1.1 at first and could not reproduce the issue.
Then I switched to IPGV&M 7.x-1.x-dev + Leaflet 7.x-1.x-dev (which has better overlay support, e.g. Google satellite base layer + road overlay) and still could not reproduce your issue.
Can you please try IPGV&M 7.x-1.x-dev? There have been a lot of changes since 7.x-1.27.
So no errors in the browser console?
Comment #10
shevgenyThank you, Rik, for your attention, but, I do not need to determine the user's location. I just need to show one or more markers on the map.
You can see here:
one marker — http://krd.nidbin.ru/c2
two markers — http://krd.nidbin.ru/c27
If you want, I give you access.
Comment #11
shevgenyWow! Connect plugins "leaflet-fullscreen" and it worked!
Comment #12
shevgeny... but no, once worked, and then stopped working. Strange.
Comment #13
shevgenyI use IPGV&M 7.x-1.x-dev + Leaflet 7.x-1.x-dev (updated today). Lib: leaflet_markercluster, leaflet-minimap, leaflet-layerconfig, leaflet-fullscreen, leaflet (0.7.3 http://leafletjs.com/download.html). jQuery Update 1.9 (I tried different from 1.4 to 2.1).
Comment #14
shevgenySolved! Everything works, if you set a value in the «Disable clustering at zoom» zoom «16».
Comment #15
RdeBoerHi shevgeny,
I thought so.... I just tried your site and it was fine.
Very glad to hear you found a way forward.
You have still found a bug as one shouldn't have to do this... but it is a workaround for now.
Maybe the cause is some interference with Leaflet MarkerCluster...
Rik
Comment #16
RdeBoerComment #17
RdeBoer.... and I can still not reproduce this bug on my system....
I can simply leave «Disable clustering at zoom» blank, with or without specifying a "Marker cluster radius" value and everything works at any initial zoom I specify, whether it is under or over 13.
By the way, what is this leaflet-layerconfig ? Is that a library? I don't think I've heard of this one.
Rik
Comment #18
shevgenyHowever, problems arise if the card 2 or more markers. In general, the module conflicts with leaflet_markercluster
Comment #19
RdeBoerHi shevgeny,
Sorry but what do you mean, "in general the module conflicts with leaflet_markercluster" ?
As far as I know, "in general" it works beautifully. IPGV&M was designed to work with Leaflet Markercluster and I believe that it does that in the vast majority of cases. I have many happy IPGV&M + Leaflet Markercluster customers.
You have demonstrated one case where there is an issue on your system -- and yes, it is a pain, and it has taken a lot of your time. I am sorry this is happening and if I could just reproduce it on my laptop the fix would be easy, no doubt.
But so far no one has been able to reproduce the steps to make this error occur on a standard Drupal7 install, with only a minimum set of modules enabled.
Rik
Comment #20
shevgenyno, it does not work. All the same problems. Through time. It is possible to completely disable the force of these MarkerCluster? When you turn off the module leaflet_markercluster relevant fields remain and the situation does not change.
Comment #21
RdeBoerYou can disable the clustering two ways:
1) set a "Marker cluster radius" of 0 in IPGV&M (see that screenshot that you produced in #14)
2) disable the Leaflet Markercluster module.
When you decide to use method 2), the IPGV&M configuration panel will say:
Marker cluster radius
...
Requires the Leaflet MarkerCluster module.
Yes the "Disable clustering at zoom" field remains. I should probably make that one go away, when the Leaflet MarkerCluster modules is disabled. But it won't do any harm.
You do not need to remove the sites/all/libraries/leaflet_markercluster folder or its javascript, but if you're paranoid, you can.
If you are finding that after switching OFF the module, clustering still happens, then maybe you have some caching going on somewhere, maybe in your View or at the page level?
Comment #22
shevgenyoff module and the "0" in the Marker cluster radius is not helping.
probably, I give up.
your module is very necessary, but why he is working on my site - is not clear.
Comment #23
shevgenyAuto-box to fit all markers (include visitor marker if color not set to ) &
Center the map on the visitor's current location, at the specified zoom level
— does not work when one marker on the map. I think some problems here.
Comment #24
RdeBoerVery similar issue here #2298421: Initial zoom setting does not work and blanks the leaflet map in node view: use Leaflet JS 0.7.5 or 1.0.0
... with a solution here: https://www.drupal.org/node/2298421#comment-9074389
Comment #25
shevgenyYes, but in this case, most of the plug-ins will not work. :(
Comment #26
RdeBoerSee also #2552607: Grey Map - No Zoom? Use Leaflet JS 0.7.5
In this case IPGV&M is NOT used.
Comment #27
RdeBoerIn [#In #2298421: Initial zoom setting does not work and blanks the leaflet map in node view: use Leaflet JS 0.7.5 or 1.0.0 It is reported that upgrading the Leaflet JS to 0.7.5 fixes this issue.
Comment #29
Joel MMCC CreditAttribution: Joel MMCC commentedThis has also been reported in the Leaflet More Maps issue queue: #2672146: Map not loading (except OSM)