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
Comment #1
xmarket commentedYou 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.
Comment #2
thommyboy commentedhi 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
Comment #3
thommyboy commentedI solved it in a template...
Comment #4
xmarket commentedNo, I suggested to create a new module and a new Views field handler.
No, I don't, but there will be a new field handler for bounds, when I find a human friendly way to theme them.