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

sylvain lavielle’s picture

Title: missing "_render" suffix on properties seems causing problem with Google Store Locator » missing "_rendered" suffix on properties seems causing problem with Google Store Locator
sylvain lavielle’s picture

I've created a related issue in Google Store Locator issue queue. (https://www.drupal.org/node/2357027)

sylvain lavielle’s picture

steven2goossens’s picture

Same issue here, fixed with downgrade to alpha2.

pol’s picture

Assigned: Unassigned » pol

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

sylvain lavielle’s picture

Hi 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

pol’s picture

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

sylvain lavielle’s picture

Ok so if others users have the problem, they can have the good name (with '_rendered' suffix) by customizing the field label, right ?

pol’s picture

Status: Active » Fixed

Exactly.

I close the issue, feel free to reopen if needed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.