First of all, thank you for the great work on this project! I want to help funding as soon as I get back on my feet.

And about the issue, after I set a Geocoded Location (both through Move to or Region Selector) the Find me button doesn't update user's location anymore, either in the main view display nor in the IPGV&M: Map (Google) centered on visitor's location block. It doesn't matter if the view is using Ajax or not also.

I'm currently using:

  • Geocoder 7.x-1.3
  • Geofield 7.x-2.3
  • geoPHP 7.x-1.7
  • IP Geolocation Views & Maps 7.x-1.29
  • Views 7.x-3.13

Any tips?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

3magnus created an issue. See original summary.

RdeBoer’s picture

Hmm.. strange.
Any errors in the browser console?
Does the same happen to you when you use http://regionbound.com/coffee-prices-across-melbourne ?

3magnus’s picture

Issue summary: View changes
FileSize
94.74 KB
267.18 KB
117.87 KB

 
No, on RegionBound everything works as it should.

Another thing working different from RegionBound is when I set a new location (through Move to or Region Selector) the map is centered around it but no marker is shown to, well, mark it.

About errors, just two warnings about JQuery Update. By the way, I tested a clean Zen subtheme with different JQuery versions too, including the 1.7 used on RegionBound. Same result.

Then it hit me, does the Find me function depend on Smart IP / GeoIP API fallbacks? I didn't install any of them.

I've also attached 3 prints of the view is being used just in case.

Hope we can find the gap.

P.S.: The message "Smart IP and GeoIP API fallbacks NOT enabled." being displayed on every single page is very unpleasant. Displaying it on Status report should be more than enough.

RdeBoer’s picture

Hi @3magnus,

No you do not need Smart IP or GeoIP.

Looks like you're using the Google API.

Suggest you keep your current setup pretty much the same. Just add the Leaflet module (and its JS, see https://www.drupal.org/project/leaflet) and change the Views Style Format to "Leaflet, via IPGV&M". This then opens the door for great animated clustering and lots of map styles to choose from, via Leaflet More Maps, including Google tiles.

No need to enable the Leaflet Views submodules. That will only add confusion.

PS: that message probably stems from the fact that you have the Advanced option switched on to output status messages. Suggest you switch that off. It's on the IPGV&M global config page, not on the Views panel.

3magnus’s picture

Thank you for your attention again.

I tend to avoid extra modules as much as I can, to keep it simple and easier to maintain. But clustering options interest me a lot, so I'll give Leaflet a try.

One more thing I noticed is that both proximity field and proximity ordering take in to account Geocoded locations other than the user's actual one with option Geocoded Location or visitor's current position.

But the behavior is not the same for Map centering as the option is only Center the map on the visitor's current location, at the specified zoom level. which is not altered by Move to or Region Selector elements.

So placing side by side the main view map and the one from IPGV&M: Map (Google) centered on visitor's location block each one points to a different "Your location" after location changing actions. And proximity calculations end up paired with the block, not the main view.

Again this happened with Google's API.

RdeBoer’s picture

Use Leaflet and your problems will disappear like snow in the sun....

3magnus’s picture

Unfortunately my problems got worse.

When I select Leaflet display the resulting view goes blank. Not the map, the whole page.

And this happens with Status report page as well. Entirely blank.

Deleting the library changes nothing but as soon as I disable the module page comes back to normal.

I tried versions:

  1. module 1.3 with library 0.7.7
  2. module 1.3 with library 1.0-beta2
  3. module 1.x with library 1.0-beta2

This does not look like a JQuery problem anymore. I'll run some tests with a clean site and see where it breaks.

Thanks for all the help anyway.

RdeBoer’s picture

Whoa! How can it fail so catastrophically?? I have never heard anyone report errors like this.
Have you checked the server error logs and the browser console? Any clues there?

3magnus’s picture

Ok, I found the bug's source. It was a simple line I had commented on Geocoder's widget.inc (an inssue with brazilian addresses form). Strange that only Leaflet module turned it into a problem.

So
1) the Find me function works as designed with Leaflet display for Views, just not with Gmap one;
2) I could not find that option you mentioned for switching on/off to output status messages in admin/config/system/ip_geoloc ("Employ Smart IP as a backup..." is off, by the way);

I'm currently looking into ip_geoloc_user in order to offer a better user experience for registered users. Since we use Session Cache API without the $_SESSION variable it needs a different approach.

Thanks for all your dedication and as soon as we have something (code or money) I get in touch.

RdeBoer’s picture

@3magnus, #9

Re 1)
Phew. Finally some progress.

Re 2)
Page: .../admin/config/system/ip_geoloc
Make sure the field "Detail execution progress with status messages" is EMPTY.
See attached screenshot.

3magnus’s picture

Wow! I've been missing a lot of things lately. Need to get my focus back.

I'm sorry for unnecessary inconvenient.

canardesign’s picture

Hello !
I got the same kind of trouble with IPGV&M: Map (Google) and "find/refine my location" block : the "find me" function is ok
but when I enter an address the visitor marker is not updated, though I can see that the $location variable and SESSION variables are correctly set. Any ideas?