Contact Map Extension
- Posted by Per Claussen (6) Offline
Is it possible to link map to another page? (for bigger map, driving instructions etc)
Is it possible to add Standard/Satellite/Hybrid views?
Is it possible to set initial zoom level?
10 years 2 months ago #1
by Per Claussen
Is it possible to add Standard/Satellite/Hybrid views?
Is it possible to set initial zoom level?
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
You can do that by adding link on the Map marker desc (in the module backend), for example :Is it possible to link map to another page? (for bigger map, driving instructions etc)
<a href="your_bigger_map.html" target="_blank">Click Here</a> for a better route
Yes it's possible by modifying the /modules/mod_contact_map/tmpl/default.php file (or you can do that also via template overriding), but please note that Google API allows you to use 2 of the 4 MapTypeId only at the same time.Is it possible to add Standard/Satellite/Hybrid views?
To do so please open the default.php file, arround lines 213 find this code
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControlOptions: {
mapTypeIds: [google.maps.MapTypeId.SATELLITE, google.maps.MapTypeId.ROADMAP]
},
mapTypeId: google.maps.MapTypeId.ROADMAP,
then you need to open file module/mod_contactmap/tmpl/assets/css/style.css, find an delete this code
.gm-style-mtc {display: none;}
Yes it's possible my modifying the /modules/mod_contact_map/tmpl/default.php file too. At lines 217 you will see this code :Is it possible to set initial zoom level?
zoom: 15,
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Btw, Get Direction link sounds useful, I'll add the autogenerated Get Direction link in the next update
10 years 2 months ago #3
by TemplatePlazza
Please Log in or Create an account to join the conversation.
- Posted by Per Claussen (6) Offline
<a href="/your_bigger_map.html" target="_blank">Click Here</a>
don't work on my site
I'll get a little popup with text - no hyperlink
the rest of your answer is ok
10 years 2 months ago #4
by Per Claussen
don't work on my site
I'll get a little popup with text - no hyperlink
the rest of your answer is ok

Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hmm ok, it looks like that desc field is still filtered. Will include this fix in the next update. Please stay tuneddon't work on my site
I'll get a little popup with text - no hyperlink
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi claper57, I've uploaded Responsive Contact Map 1.1, you can re-download it from www.templateplazza.com/items/responsive-contact-map
10 years 2 months ago #6
by TemplatePlazza
Please Log in or Create an account to join the conversation.