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.
I have my locator set up here: https://cocopolo.com/store-locator and it is working well for the most part. Very helpful module to have!
But there is an issue when some locations are entered in word-format. Now, the MAP always works fine, but the stores list does not.
If I use ZIP codes it works fine consistently. But if I type in "Denver, CO" (even if I select what came up in the location dropdown from Google) the stores list does not change. Only the map changes.
However, some locations work, like Philadelphia, PA.
Any ideas?
Chris
Comment | File | Size | Author |
---|---|---|---|
#8 | search-rome.png | 428.9 KB | Noemi |
#8 | default.png | 575.82 KB | Noemi |
Comments
Comment #1
innovafire CreditAttribution: innovafire commentedComment #2
innovafire CreditAttribution: innovafire commentedAnyone have an idea about this?
Comment #3
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedHi innovafire,
I have tested with the address "Denver, CO" in https://cocopolo.com/store-locator and the store list was updated accordingly.
Could you please check again if this error is still happening?
Comment #4
Noemi CreditAttribution: Noemi commentedI looked for information about this bug for quite some time and now I found this issue.
I'm debugging a website that shows the same bug. This is the site: http://www.seitron.com/it/store-locator1.
If I enter location as "Rome, Metropolitan City of Rome, Italy" or "Milan, Metropolitan City of Milan, Italy" all work fine, but if I enter "Rome Italy" or "Milan Italy" list doesn't update, just map does.
I just tried to update to latest releases of Google Store Locator and GeoJSON, but nothing works anymore (list and map don't update). Also tried to update Geocoder to insert a Maps API Key, but with no luck.
Comment #5
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedSorry for the delay to reply.
@Noemi, can you reproduce this issue after reload the page (the first search after page load)? Are the pinpoints showing normally on the map after searching for "Rome Italy" or "Milan Italy"? Could you please attach a screenshot of this error?
I think I might found the issue after some trials, but I am not sure if it is another issue. Sometimes the list has some delays to reload and it appears it is related with concurrency of multiples searches (or map update/move) being executed in parallel. If I move the map and try to search by other region without waiting some seconds, the map is being updated with the new search, but not the list.
@Noemi, if you are trying to update to module, probably you need to go to views configuration page of GeoJSON and revert it to the default version. After that, clear all caches. Please create a backup or try it in a testing environment before applying to production.
Comment #6
Noemi CreditAttribution: Noemi commentedHi @rodrigoeg,
thanks for your reply. I'm not working on this project anymore (client needs a custom solution), but I can provide the info you requested, if still useful.
Comment #7
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedHi @Noemi,
Yes, it will be very useful if you could please send me this info. I am still strugling to find what is this issue. The screenshots will be very helpful.
Comment #8
Noemi CreditAttribution: Noemi commentedHi @rodrigoeg,
I made a couple of screenshots of the production website.
The first one is the page as default, before any search.
This one is after searching "Rome, Italy". You can see the map updated, but not the list.
Unfortunately, I don't have the site code in my local environment anymore (and the client is no more a client of mine), so I can't test the modules update. :(
Comment #9
rodrigoeg CreditAttribution: rodrigoeg at CI&T commented