Hello all,
I use an extension from Eblasoft called Ebla Map Plus (wonderful extension btw!) and I can add polygon shapes to google maps. It saves this in a field "fieldname_draw_data" in the format:
{"polygons":[[{"lat":52.00000000000000,"lng":5.000000000000000}, {"lat":52.00000000000000,"lng":5.000000000000000}, {"lat":52.00000000000000,"lng":5.00000000000000 0},]]}
Since i cant print this polygon with "printtopdf" in any way and the developer currently doesn't have time to add this, I tought i would use formula to create a url with the google maps static API.Then i can use this with the image tag in my pdf template.
In order to do this, i need to reformat the draw data in the following format:
52.00000000000000,5.000000000000000|52.00000000000 000,5.000000000000000|52.00000000000000,5.00000000 0000000|52.00000000000000,5.000000000000000
I think it should be achievable to do this with string\matchAll or string\matchExtract but i don't know how exactly. Anybody able to point me in the right direction?
I use an extension from Eblasoft called Ebla Map Plus (wonderful extension btw!) and I can add polygon shapes to google maps. It saves this in a field "fieldname_draw_data" in the format:
{"polygons":[[{"lat":52.00000000000000,"lng":5.000000000000000}, {"lat":52.00000000000000,"lng":5.000000000000000}, {"lat":52.00000000000000,"lng":5.00000000000000 0},]]}
Since i cant print this polygon with "printtopdf" in any way and the developer currently doesn't have time to add this, I tought i would use formula to create a url with the google maps static API.Then i can use this with the image tag in my pdf template.
In order to do this, i need to reformat the draw data in the following format:
52.00000000000000,5.000000000000000|52.00000000000 000,5.000000000000000|52.00000000000000,5.00000000 0000000|52.00000000000000,5.000000000000000
I think it should be achievable to do this with string\matchAll or string\matchExtract but i don't know how exactly. Anybody able to point me in the right direction?
Comment