Closed (fixed)
Project:
Simple Google Maps
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2017 at 11:54 UTC
Updated:
20 Sep 2017 at 23:39 UTC
Jump to comment: Most recent
Comments
Comment #2
jhodgdonThe formatter for this module already has a checkbox in its options that you can use to display the address along with the map. You can look at the existing Twig template to see how it is output.
But maybe you are looking for something else?
Comment #3
jhodgdonSo, just to be clear... If you look at templates/simple-gmap-output.html.twig ... you will see this:
The way this works is that if the "Include address text" box is checked in the field formatter settings (either in Views or in your Manage Display screen), that "address_text" variable will be sent to the Twig template. So if you're making a custom template for your site, you can do the same thing as that to display the address.
Hope this helps... Tentatively marking this support request Fixed, but if this doesn't answer your question, you can mark it back to Active and add some information to clarify what you are trying to do.