Contact Map Extension

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

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline

Is it possible to link map to another page? (for bigger map, driving instructions etc)

You can do that by adding link on the Map marker desc (in the module backend), for example :
<a href="your_bigger_map.html" target="_blank">Click Here</a> for a better route

Is it possible to add Standard/Satellite/Hybrid views?

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.
To do so please open the default.php file, arround lines 213 find this code
mapTypeId: google.maps.MapTypeId.ROADMAP,
change that to
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;}

Is it possible to set initial zoom level?

Yes it's possible my modifying the /modules/mod_contact_map/tmpl/default.php file too. At lines 217 you will see this code :
zoom: 15,
change the '15' to any number you want.
10 years 2 months ago #2 by TemplatePlazza

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.

<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

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline

don't work on my site
I'll get a little popup with text - no hyperlink

Hmm ok, it looks like that desc field is still filtered. Will include this fix in the next update. Please stay tuned
10 years 2 months ago #5 by TemplatePlazza

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.

Powered by Kunena Forum