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.

see — http://youtu.be/Adv7PM8RDbo

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shevgeny created an issue. See original summary.

RdeBoer’s picture

Hi 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

shevgeny’s picture

at 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.

shevgeny’s picture

And 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

RdeBoer’s picture

shevgeny’s picture

@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

shevgeny’s picture

Hi, 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.

RdeBoer’s picture

Hi shevgeny,
I'll have a closer look soon.
Rik

RdeBoer’s picture

I'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?

shevgeny’s picture

Thank 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.

shevgeny’s picture

Wow! Connect plugins "leaflet-fullscreen" and it worked!

shevgeny’s picture

... but no, once worked, and then stopped working. Strange.

shevgeny’s picture

I 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).

shevgeny’s picture

Solved! Everything works, if you set a value in the «Disable clustering at zoom» zoom «16».
zoom

RdeBoer’s picture

Hi 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

RdeBoer’s picture

Title: No maps at a scale greater than 13 » Grey map canvas at zoom levels over 13, when there's only 1 marker to show and marker clustering enabled
Version: 7.x-1.27 » 7.x-1.x-dev
Component: User interface » Code
Assigned: Unassigned » RdeBoer
Priority: Critical » Normal
RdeBoer’s picture

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

shevgeny’s picture

However, problems arise if the card 2 or more markers. In general, the module conflicts with leaflet_markercluster

RdeBoer’s picture

Hi 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

shevgeny’s picture

no, 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.

RdeBoer’s picture

You 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?

shevgeny’s picture

off 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.

shevgeny’s picture

Auto-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.

RdeBoer’s picture

shevgeny’s picture

Yes, but in this case, most of the plug-ins will not work. :(

RdeBoer’s picture

See also #2552607: Grey Map - No Zoom? Use Leaflet JS 0.7.5

In this case IPGV&M is NOT used.

RdeBoer’s picture

Status: Active » Fixed

In [#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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Joel MMCC’s picture

This has also been reported in the Leaflet More Maps issue queue: #2672146: Map not loading (except OSM)