Skip to content

Welcome

jmosmap edited this page Apr 1, 2015 · 5 revisions

Plugin Googlemap - A Joomla plugin

This is the Joomla plugin Google maps by Reumer based on Google Maps API version 3 (Google Terms).

Install

Just go to Joomla menu Extensions submenu extension manager tab install in your administration console. Upload and install the plugin with zip-file, for Joomla 1.5 use file with J15 in the name and for Joomla 2.5/3.x use file with J25_J3x in the name. Then go to Joomla menu Extensions submenu Plugin Manager and publish the Plugin Google Maps.

After publishing the plugin go to the parameters of the plugin by clicking on the name of the plugin. Here you can set the defaults of the parameters and if you want to use Google Maps api version 3 the Google API key (Google APIs Console) because of the usage limits and billing.

Always enable the plugin, because with the extra plugin parameter Published you can set if the mostag must be removed or that the mostag is replace with a Google map.

How to use the plugin in content

You can put the {mosmap} with parameters anywhere in content in Joomla: intro text or main text of an article, components and modules. You can see examples and documentation on my demo site: tech.reumer.net.

Check the html of the content item so there are no html like <br />, <span> or   between { } or in the html a return. If you work with pure html code, be sure that there isn't any "\r\n" tags in the mosmap string between { } in your database code. The plugin works for one line!

It can be once, twice or more to display multiple, inline maps on a single content page for different locations and configurations.

Usage: {mosmap width='500'|height='400'|lat='52.052312'|lon='4.447141'| zoom='3'|mapType='Satellite'|text='sv DWO'|tooltip='DWO'| marker='1'|align='center'}

(goto html view of an article and remove the returns between the line or
so its one line)

You can change any of the parameters:

  • width, height to whatever you want although if its too small, you won't see very much
  • lon and lat for the coordinates
  • zoom can be between 0 (world) and 19 (detailed)
  • mapType can be Normal (default), Satellite, Hybrid or Terrain
  • text is for the marker, that will show on the map with a balloon. If you don't want to see the text, just set text=" and it will not display, the text is the data displayed above the location pin. Usually it would be used to display an address or hyperlink. A hyperlink is possible use the format: <a href=linkAddress target=linkTarget title=linkTitle>linkName</a>. Don't use (double) quotes!
  • marker is for opening the infowindow (1 default) or close the infowindow (0) initially.
  • dir for adding get directions form for a route at maps.google.com to the coordinates.
  • tooltip is for the marker to have a tooltip when the mouse is on the marker (don't use HTML)
  • address is for a address to search for the coordinates
  • kml is for a url to a kmlfile to load as a overlay on the map for multiple markers or a route

For all parameters see here

You can set the single Google key or Multiple urls and Google keys at the parameters by the plugin in the administrator of Joomla. You can register for a Google API Key Google API Console

Clone this wiki locally