XF 2.2 Embed google maps, via the coordinates of a custom field.

Miri

Well-known member
I have a custom field present in a thousand posts with coordinates(obviously different for each post).
Coordinates are represented like this
LAT,LONG (52.345596,4.919289)

I am currently showing a link:
Code:
[URL='https://www.google.com/maps/search/?api=1&query=52.345596,4.919289']MAP[/URL]

This solution has two positive sides:
  1. works without api-key
  2. shows the google maps marker exactly on the point of the coordinates
and a negative one:
  1. doesn't embed the map.
and here is my question:

How do i embed a google map, taking the coordinates from my custom field and displaying the google maps marker on the map?

I tried using various possibilities:
Code:
https://developers.google.com/maps/documentation/embed/embedding-map#adding_the_url_into_an_iframe

via the custom field's "Value display HTML", but I can't get it to embed.

I am aware, that for this solution (if I understand correctly), I need an API-KEY
 
Top