Wednesday, March 17, 2010

2 Mins to place the Google map in Joomla

Hello All,

   I am working in joomla since last one year and sometimes, i really felt big the issue with google map because I have not found such good plugin OR Module which is display the map as many way as possible. So recently in joomla's plugin directory i have found such useful plugin which is working great with article and contact us page.



Mostly, we need the Google Map in (Contact us and Article pages) and this plugin is display the map in such a nice way with one line code.

Google Map display in article page:

Below is the syntax for the same

{mosmap lat='32.7659074'|lon='-117.2254277'|zoom='18'|rotation='1'|mapType='Hybrid'}

By changing the map type you can get multiple types of map views.

Google Map display in contact us page: This is little bit tricky but its work nice. you should need to change in main index.php file. Below is the code you need to put in index.php file



Add these lines at line 84 after $mainframe->render();:
JPluginHelper::importPlugin('content');
$tmp_row->text = JResponse::getBody();
$tmp_params = new JParameter(null);
$mainframe->triggerEvent('onMap', array( &$tmp_row, &$tmp_params ), true );
JResponse::setBody($tmp_row->text);

* So above code will work in contact us page. for more details please follow below link.
How to put Google Map Inside the Contact us page



* For downloading the plugin please follow below link.


Plugin download link

I have also done many R & D with this Plug-in. So please let me know if you have any issue with this plug-in. I will try my best to solve out it.

Regards,
Sandip

No comments: