Am using v1.0 of the Google Store Locator. Seems to work like a charm except for the feature filter list. I've written a custom module where I can upload a CSV and import a list of ~300 - 400 store locations into the system. It works fine. If I go to the store locations page I see all locations appear on the map.
I am now trying to add a feature filter so I modified the store location content type an added some Allowed Values to the list. I then randomly selected maybe 2 or 3 pieces of content and checked them with certain features.
After doing this, when I go to my store location page initially (by default all filters are unchecked) I see all my store locations, but when I then Check one of the features I added everything goes blank saying there are No stores in this area. I can zoom all the way out and see the entire world and it tells me there are no stores in this area.
Expectation? I'm expecting to see 2 or 3 markers of the stores that I randomly checked having the features. Every single time though the result is No stores in this area and the entire map is blank. As soon as I uncheck all features then all locations show up again.
Anyone else getting this?
EDIT: Confirmed this seems to also be an issue for me after trying the latest development version.
Comment | File | Size | Author |
---|---|---|---|
#9 | gsl_json_feed.png | 108.45 KB | michfuer |
#9 | gsl_phone_website.png | 202.48 KB | michfuer |
Comments
Comment #1
skalfyfan CreditAttribution: skalfyfan commentedEdit is to confirm that this problem exists for me even with the latest development version. As soon as a feature is checked on the entire map goes blank and there are no results in the area.
Comment #2
axelpezzo CreditAttribution: axelpezzo commentedI tested with 1.0, 1.0-dev and 1.1 but I have the same problem. The features filter not work. The JSON file has the correct value but when you check a filter the location list is empty.
Comment #3
axelpezzo CreditAttribution: axelpezzo commentedComment #4
discipolo CreditAttribution: discipolo commentedyes, i can confirm this is an issue too
Comment #5
tmptye CreditAttribution: tmptye commentedIt's pretty frustrating actually - there are a number of issues; the feature filter list, adding phone numbers and website addresses that are impossible to get working... any help appreciated.
Comment #6
petrios CreditAttribution: petrios commentedsame issue :-(..I started use this module today and this filter is very usefull option...it was working at the past or not? Maybe trouble with new version views_geojson module? I think about downgrade, but I don´t know, if it help me. Thx maintainers for some feedback in advance.
Comment #7
carlodimartino CreditAttribution: carlodimartino commentedYes. Not working for me either. Would be really handy if it was :(
Comment #8
steven2goossens CreditAttribution: steven2goossens commentedSame here...
Comment #9
michfuer CreditAttribution: michfuer commentedSo I just built a fresh install of the gsl using the 1.x-dev branch and I'm not able to reproduce the problem. Obviously something is amiss, and maybe it has to do with some outdated instructions, so I'm going to post my exact install details and see if we can't find out the difference between what I'm doing, and what others are that's causing the issue.
Here's the gsl specific portion of my make file
I've also attached a screenshot of the locator with both 'phone' and 'website' fields displayed, as well as one of my 'Location Export' view and it's json output.
Keep in mind I've only tested this with one location, but I made sure to mark that location as having the '24 hrs' feature. When I go to the locator and select 'Handicap Accessible' my one store disappears. When I unselect it, it re-appears, and nothing happens (as it should) when I select '24 hrs)
Hopefully if some of you can compare your setups with mine, we can get to the bottom of this.
Comment #10
eurotrash CreditAttribution: eurotrash commentedSee below, figured out the issue had to do with using later version of views_geo_json.
Comment #11
eurotrash CreditAttribution: eurotrash commented#9's post is spot on. Once I rolled back view_geo_json to 1.0-alpha2 it started working for me. I had previously been using version 7.x-1.0-alpha5, the feature filter did not work.
Also this issue might be of interest:
https://www.drupal.org/node/2357027
My config below:
Comment #12
tmptye CreditAttribution: tmptye commented#11's post totally works for me... all I had different was GeoJSON version alpha4... couldn't get it to work, so rolled it back to 2... wonderful. THANKS
Comment #13
satrece CreditAttribution: satrece commentedIm using version
views GEO JSON = 7.x-1.0-beta1
Google store locator = 7.x-1.x-dev
still problem exists.. how to overcome..
Comment #14
atona CreditAttribution: atona commentedI'm also using Google Store Locator 7.x-1.1
I updated to GeoJSON 7.x-1.0-beta1 (from alpha2) and encountered the same problem
Comment #15
gjones CreditAttribution: gjones commentedI just got the features to work by including the gsl_feature_filter_list field into my view, then adding a label and calling it "gsl_feature_filter_list_rendered"
Note the _rendered because according to line 355 of js/google_store_locator.js its expecting that string.
views_geojson 7.x-1.0-beta3+3-dev
google_store_locator 7.x-1.1+19-dev