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:
This solution has two positive sides:
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:
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
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:
- works without api-key
- shows the google maps marker exactly on the point of the coordinates
- doesn't embed the map.
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