Greetings,

I am using leaflet api as a view formatter. My content type uses multiple geofield latitude/longitude fields as a source for the view. i have cloned my IPGV&M view and changed format to table just so i can visualize the data coming in. and all of the coordinates provided geofield are displayed correctly in a table column. what i don't understand is how to get these coordinates converted into the polygon data format which leaflet can use to display the polygon. i guess i need to get the data into a format like this:

(2.96 36.8, 8.62 36.94, 8.18 36.52, 8.25 34.64, 7.49 33.89, 9.06 32.1, 9.54 30.23, 9.95 27.82, 9.87 26.51, 9.4 26.15, 10.25 24.61, 11.56 24.3, 11.99 23.52, 5.81 19.45, 4.25 19.15, 3.33 18.98, 3.23 19.82, 1.8 20.31, -4.81 25, -6.66 26.13, -8.67 27.29, -8.67 27.67, -8.67 28.71, -3.63 30.97, -3.82 31.7, -1.18 32.11, -1.75 34.75, -2.21 35.09, 0.95 36.45, 2.96 36.8)

I don't understand how to do it, or specifically at which point? should it come from the node item already in this format? or will the geofield view field config convert it? or is it converted from lat/lon by IPGV&M?

any tips on steps to take would be greatly appreciated. many thanks! cheers kevin

Comments

drupalstrap created an issue.