The new Views GeoJSON alpha3 integrates #1578862 issue patch, which strip off "_rendered" suffix from JSON features' properties. Though, it seems to cause problems to Google Store Locator module's current version (7.x-1.1) : this one is exposing gsl_ properties into its GeoJSON view that was previously handled by Google Store Locator module in its display. It's seems no longer working with Alpha 3 update because of "_rendeded" suffix missingness.
Comments
Comment #1
sylvain lavielle commentedComment #2
sylvain lavielle commentedI've created a related issue in Google Store Locator issue queue. (https://www.drupal.org/node/2357027)
Comment #3
sylvain lavielle commentedComment #4
steven2goossens commentedSame issue here, fixed with downgrade to alpha2.
Comment #5
polI just checked the issue and I will work on a alpha 4 today and do something about it.
I'm not so keen on having all the field '_rendered' to keep the geojson as small as possible, so I will find a solution where you'll be able to customize the name of the property, maybe I'll use the label, I don't know yet.
Comment #6
sylvain lavielle commentedHi pol,
Install drupal, Install Views GeoJSON Alpha 2 (7.x-1.0-alpha2) and dependencies then Google Store Locator and dependencies.
Create a test store (a nodetype is provided by GSL) and fill every field (those having a machine name prefixed with "gsl_") then you should be able to see it and its fields in the Google Store Locator page. Then update from Views GeoJSON from Alpha 2 to Alpha 3 and go to the Google Store Locator page, most of your test shop's fields sould have disapeared from the display.
Looking at https://www.drupal.org/node/2349507, The probem comes from the patch from Issue #1578862 by Andrew_Mallis: Only rendered fields should appear in geojson. It's an old issue closed 2 years ago but the patch have just been applied to the Alpha 3 version.
Hope that would help
Comment #7
polI see the problem.
I just committed this: #1578908: use field labels ask keys in json output, this is a way to deal with the problem but the problem doesn't comes from views_geojson.
Comment #8
sylvain lavielle commentedOk so if others users have the problem, they can have the good name (with '_rendered' suffix) by customizing the field label, right ?
Comment #9
polExactly.
I close the issue, feel free to reopen if needed.