Then I’ve installed, enabled and configured the google map plugin and I was given this code to view the map:
[google-maps width='100%' lat=44.540 lng=-78.546 zoom=13 scrollwheel=true panControl=true iconurl='/absolute/path/to/marker/icon.png']
***My Place***
This is my place
[/google-maps]
If I put this on the form.md file, the maps shows but the form is not rendered. Where I must put the code?
I suggest you search the web for “grav google maps”. It will show you a couple of relevant Grav plugins and even some Grav Forum posts about that topic.
How to display a map in the footer for each page. Footer file is in …/partials/footer.html.twig, but embedding markdown in …html.twig displays only markdown:(
If I understand right, you did embed the markdown/shortcode for the google maps shortcode in your footer.html.twig ?
if so, that will not work, as twig does not process/interpret markdown shortcodes.
try to use the correct syntax to embed shortcodes in twig, see for example this hint
on stackoverflow
So, basically I should create a new page (.md file) where I put markdown (markdown embeded in .md shows a map). Then I should embed content of this page in /partials/footer/html.twig, right?
Perhaps not specifically what you’re looking for I highly encourage you to abandon Google Maps in favor of OSM. The benefit is that people can own the data, not Goolag.
No, just the other way round - your footer is a template which is shown on all pages that incorporate that template, so will have to insert the maps shortcode in a way that can be interpreted by twig.
and, as already mentioned by next poster, you could consider using OSM instead of google maps, for various reasons.
there is a nice grav plugin for OSM: Map Marker Leaflet