Hi, I've got content with a bounds-enabled "GMaps Point" field. Entering bounds-data works fine.
But now I need to access the bounds-data (I need both lon/lat positions) in a view but I'm only
offered ONE longitude/latitude field in view's fields?
f.y.i. my view is not displaying the data on a map, in generates XML-output...
Thanks for any hint! Tom

Comments

xmarket’s picture

You should write a new views field handler for the bounds(serialized!!) field of the gmaps_content_point table. You can use the function _gmaps_content_field_views_data_point() as reference.

thommyboy’s picture

hi xmarket,
this is a little to "deep" for me ;) and i would need to change module-code, right? do you think this handler could make it to a future release? i could imagine that getting this bounds-data as fields could be useful in different situations- in my case i would like to filter additional nodes depending of them being inside the bounds or not and also i would like to put the bounds into an xml i generate dynamically.
regards and thanks for this great module! TOM

thommyboy’s picture

I solved it in a template...

xmarket’s picture

Status: Active » Fixed

...i would need to change module-code, right?...

No, I suggested to create a new module and a new Views field handler.

...do you think this handler could make it to a future release?...

No, I don't, but there will be a new field handler for bounds, when I find a human friendly way to theme them.

Status: Fixed » Closed (fixed)

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