Google map on localhost

Hello! Everything is work! Thanks so much! The trick was to remove sign from coordinates!
I would like to say that your component is awesom and best of all!
Questions/ requests:
1. Is it possible to display google earth map instaed ot street view?
2. I need for social icons vc.com How to insert this icon?
Thanks in advance!
Grio
9 years 9 months ago #7 by grio

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

  • Posted by TemplatePlazza (5310) Offline
Hi glad you found it works ;)

1. Is it possible to display google earth map instaed ot street view?

You can do that by modifying a line the this file :
../modules/mod_contactmap/tmpl/default.php
At lines 220 you will see this code :
mapTypeId: google.maps.MapTypeId.ROADMAP,
change that to
mapTypeId: google.maps.MapTypeId.HYBRID,

2. I need for social icons vc.com How to insert this icon?

What is vc.com? Did you mean vk.com?

I would like to say that your component is awesom and best of all!

Thanks, glad you like it. If you don't mind please leave us a rating at extensions.joomla.org/extensions/extensi...sponsive-contact-map. It will help us much. Thanks!
9 years 9 months ago #8 by TemplatePlazza

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

Sorry, sure it is vk.com :-)
Thanks for google map change!
Your link for rating comig back with 404 error check it pls and I will give highest one !
9 years 9 months ago #9 by grio

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

  • Posted by TemplatePlazza (5310) Offline
Sorry the link is extensions.joomla.org/extensions/extensi...sponsive-contact-map

Regarding the vk.com, to do that you need to change some files :
1. [joomlaroot]/modules/mod_contactmap/mod_contactmap.xml
around line 245, after this code :
<field name="skype"
        type="text"
        default=""
        label="MOD_CONTACTMAP_SKYPE_LABEL"
        description="MOD_CONTACTMAP_SKYPE_DESC" />
add this code
<field name="vk"
        type="text"
        default=""
        label="VK"
        description="Enter your VK username" />
2. Open this file : [joomlaroot]/modules/mod_contactmap/mod_contactmap.php , around lines 44, after this code
$skype 	= $params->get('skype');
add this code
$vk = $params->get('vk');
3. Copy this file : [joomlaroot]/modules/mod_contactmap/tmpl/default.php to [joomlaroot]/templates/your_active_template_name/html/mod_contactmap/default.php (create the folder mod_contactmap first if it's not existed) . Open /templates/your_active_template_name/html/mod_contactmap/default.php file, around lines 101 after this code :
... .$skype."'/><span>".$skype."</span></a></li>"; } else { $s_skype ="";}
add this code :
if($vk) { $s_vk ="<li><a href='http://www.vk.com/".$vk."' ><img src='".JURI::base()."/modules/mod_contactmap/tmpl/assets/img/vk.png' width='40' alt='".$vk."'/><span>".$vk."</span></a></li>"; } else { $s_vk ="";}

and then at lines 252 change this code :
<?php echo $s_twitter.$s_facebook.$s_gplus.$s_linkedin.$s_instagram.$s_dribbble.$s_skype; ?>
to
<?php echo $s_twitter.$s_facebook.$s_gplus.$s_linkedin.$s_instagram.$s_dribbble.$s_skype.$s_vk; ?>
4. Upload your vk logo image to [joomlaroot]modules/mod_contactmap/tmpl/assets/img/ and name it as vk.png
5. Go to the contact map module backend, you'll see the new vk.com field there, simply enter your vk.com username

That's all. Hope this helps ;)
9 years 9 months ago #10 by TemplatePlazza

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

Powered by Kunena Forum