Active
Project:
Openlayers
Version:
7.x-2.x-dev
Component:
OL Views
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2012 at 13:24 UTC
Updated:
4 Oct 2013 at 14:57 UTC
Hello,
I have a latitute value in one field and longtitute value in another field of my view. I am combining those values in a Global:Custom text, by rewritting it and using replacement patterns.
But when I select Global field as the WKT field in the OpenLayers Data Overlay settings, then looking at the preview, the result is not rendered. Instead it only shows the replacement pattern in the wkt part of the code:
'wkt' => '[field_route]',
Instead it should be like:
'wkt' => 'POINT (30.656986906656 39.136861296311)',
Here is the entire output:
0 =>
array (
'projection' => '4326',
'attributes' =>
array (
'title_rendered' => '<a href="/mdb/content/ttttttttttttttttttt">ttttttttttttttttttt</a>',
'title' => 'ttttttttttttttttttt',
'field_geolocation_rendered' => '',
'field_geolocation' => NULL,
'field_geolocation_1_rendered' => '',
'field_geolocation_1' => NULL,
'field_route_rendered' => 'POINT (30.656986906656 39.136861296311)',
'field_route' => 'POINT (30.656986906656 39.136861296311)',
'nothing_1_rendered' => 'POINT (30.656986906656 39.136861296311)',
'nothing_1' => '[field_route]',
'name' => '<a href="/mdb/content/ttttttttttttttttttt">ttttttttttttttttttt</a>',
'description' => '<a href="/mdb/content/ttttttttttttttttttt">ttttttttttttttttttt</a>',
),
'wkt' => '[field_route]',
),
What can I do to use the rewritten value instead of replacement pattern here?
Thanks...
Comments
Comment #1
drshearer commentedIn case anyone else comes upon this post while having the same problem: I was able to use Views FIelds Combine to get the desired output for my WKT.