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.

CommentFileSizeAuthor
#9 gsl_json_feed.png108.45 KBmichfuer
#9 gsl_phone_website.png202.48 KBmichfuer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

skalfyfan’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Issue summary: View changes

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

axelpezzo’s picture

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

axelpezzo’s picture

Priority: Normal » Major
discipolo’s picture

yes, i can confirm this is an issue too

tmptye’s picture

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

petrios’s picture

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

carlodimartino’s picture

Yes. Not working for me either. Would be really handy if it was :(

steven2goossens’s picture

Same here...

michfuer’s picture

FileSize
202.48 KB
108.45 KB

So 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

projects[google_store_locator][type] = module
projects[google_store_locator][subdir] = contrib
projects[google_store_locator][version] = 1.x-dev
projects[google_store_locator][download][type] = git
projects[google_store_locator][download][url] = michfuer@git.drupal.org:project/google_store_locator.git
projects[google_store_locator][download][branch] = 7.x-1.x


projects[geocoder][type] = module
projects[geocoder][subdir] = contrib
projects[geocoder][version] = 1.2

projects[geofield][type] = module
projects[geofield][subdir] = contrib
projects[geofield][version] = 2.x-dev
projects[geofield][download][type] = git
projects[geofield][download][url] = http://git.drupal.org/project/geofield.git
projects[geofield][download][branch] = 7.x-2.x

projects[libraries][type] = module
projects[libraries][subdir] = contrib
projects[libraries][version] = 2.x-dev
projects[libraries][download][type] = git
projects[libraries][download][url] = http://git.drupal.org/project/libraries.git
projects[libraries][download][branch] = 7.x-2.x

projects[views_geojson][type] = module
projects[views_geojson][subdir] = contrib
projects[views_geojson][version] = 1.0-alpha2

projects[geophp][type] = module
projects[geophp][subdir] = contrib
projects[geophp][version] = 1.x-dev
projects[geophp][download][type] = git
projects[geophp][download][url] = http://git.drupal.org/project/geophp.git
projects[geophp][download][branch] = 7.x-1.x

projects[contextual_range_filter][type] = module
projects[contextual_range_filter][subdir] = contrib
projects[contextual_range_filter][version] = 1.x-dev
projects[contextual_range_filter][download][type] = git
projects[contextual_range_filter][download][url] = http://git.drupal.org/project/contextual_range_filter.git
projects[contextual_range_filter][download][branch] = 7.x-1.x

libraries[storelocator][download][type] = git
libraries[storelocator][download][url] = https://code.google.com/p/storelocator/

libraries[markerclusterer][download][type] = svn
libraries[markerclusterer][download][url] = http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/

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.

eurotrash’s picture

See below, figured out the issue had to do with using later version of views_geo_json.

eurotrash’s picture

#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:

name = Address Field
version = "7.x-1.0-rc1"
core = "7.x"

name = Geocoder
version = "7.x-1.2"1

name = Geofield
version = "7.x-2.3"

name = Libraries
version = "7.x-2.2"

name = "GeoJSON"
version = "7.x-1.0-alpha2"

name = Views
version = "7.x-3.8"
tmptye’s picture

#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

satrece’s picture

Im using version
views GEO JSON = 7.x-1.0-beta1
Google store locator = 7.x-1.x-dev
still problem exists.. how to overcome..

atona’s picture

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

gjones’s picture

I 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