Very Important: This plugin works only with PHP5 and higher. It does not work with PHP4 because PHP4 does not support OOP multiple inheritance.
Thanks to Chaminda and Marc for sharing and highlighting this.
Tutorials
You can add a label to be displayed when the user clicks on the red marker. Please make sure you enclose the label in double quotes. For new lines, please use ~.
Hiding the Red Marker: By default, a red marker will appear at the point where you specify the center of the map. If you are displaying all markers within your KML files, you can hide the red marker by using the parameter marker=0.
Map Control: You can use the various map control as defined in Goolge Maps Controls Overview. For example, to use the large pan/zoom control as now used on Google Maps, use the following syntax:
GLargeMapControl3D - a large pan/zoom control as now used on Google Maps. Appears in the top left corner of the map by default.
GLargeMapControl - a simpler large pan/zoom control. Appears in the top left corner of the map by default.
GSmallMapControl - a smaller pan/zoom control. Appears in the top left corner of the map by default.
GSmallZoomControl3D - a small zoom control (with no panning controls) as now used on Google Maps.
GSmallZoomControl - a small zoom control (no panning controls) used in the small map blowup windows used to display driving directions steps on Google Maps.
GScaleControl - a map scale
GMapTypeControl - buttons that let the user toggle between map types (such as Map and Satellite)
GHierarchicalMapTypeControl - a selection of nested buttons and menu items for placing many map type selectors.
GOverviewMapControl - a collapsible overview map in the corner of the screen
Language option. The Google Maps API uses the browser's preferred language setting when displaying textual information such as the names for controls, copyright notices, and driving directions. If you wish to change the Maps API to ignore the browser's language setting and force it to display information in a particular language, you can add an optional lang parameter.
e.g. to display the Goolge Maps control in French, use:
Overview Map. By default, an overview map will be added to the bottom right corner of the map. To turn it off use addoverview=0.
Google Bar. By default, a Google Bar will be displayed that provides local search capabilities within Maps API applications, allowing users to search locations for local listings. For example, the user can search for restaurants or the nearest bookstores around the place. To turn it off use addgoogle=0.
Map Scale. To add a a control that displays the map scale, use addscale=1.
To make the your page containing the googleMaps plugin W3C XHTML 1.0 Transitional, here are the steps:
Install googleMaps plugin v1.5.11 and above.
Run your page through the HTML validator. If it does not validate, please do step 3.
In Joomla, the standard editor usually puts a pair of <p>...</p> around each paragraph. This will cause a problem because the following is not valid in XHTML 1.0 Transitional (you cannot have a <div> inside a <p> tag):
<p>
...
<div>
... HTML codes that inserts the google map
</div>
...
</p>
To work around this, please add a add_p=1 in your googleMaps tags as shown below:
If you find the plugin useful and would like to use the plugin without the "Powered-by" links, you may do so by purchasing a "Powered-by" removal license for only USD $10 per site.
Secured payment is processed by 2checkout.com. All major credit cards are accepted, including Visa, Mastercard and American Express, etc. You can also pay by PayPal. Once the transaction is completed, you will be given a link to download the version with the "Powered by" links removed.
v1.07 (for Joomla 1.0) and v1.57 (for Joomla 1.5)
Released May 23, 2009
Added GOverviewMapControl, GScaleControl and GoogleBar.
By default, an overview map will be added to the bottom right corner of the map. To turn it off use addoverview=0.
By default, a Google Bar will be displayed that provides local search capabilities within Maps API applications, allowing users to search locations for local listings. For example, the user can search for restaurants or the nearest bookstores around the place. To turn it off use addgoogle=0.
To add a a control that displays the map scale, use addscale=1
v1.08 (for Joomla 1.0) and v1.58 (for Joomla 1.5)
Released May 27, 2009
You can now add multiple controls, e.g.GLargeMapControl3D|GMapTypeControl. Please refer to here for more details.
v1.09 (for Joomla 1.0) and v1.59 (for Joomla 1.5)
Released May 28, 2009
The plugin now comes with a built-in geocoder! This means that you can now specify address directly, instead of using the longitude and latitude. Please refer to here for more details.
v1.0.10 (for Joomla 1.0) and v1.5.10 (for Joomla 1.5)
Released Jun 1, 2009
v1.0.12 (for Joomla 1.0) and v1.5.12 (for Joomla 1.5)
Released October 24, 2009
This is in response to Chris's post titled "Re:googleDirections - To Here -- error".
"$add_p undefined" has been fixed.
v1.0.13 (for Joomla 1.0) and v1.5.13 (for Joomla 1.5)
Released February 27, 2010
This is in response to Andrew's post titled "Re:Undesirable lines of code".
The 2 lines of warning messages "$add_p undefined" have been fixed.
v1.6 (for Joomla 1.6)
Released Feb 23, 2011
Native version of the googleMaps plugin for Joomla 1.6!
v1.7.14 (for Joomla 1.7)
Released October 10, 2011
Native version of the googleMaps plugin for Joomla 1.7!
Also, support for PHP v5.3.8 for both Joomla 1.6 and Joomla 1.7.
v1.0.15 (for Joomla 1.0), v1.5.15 (for Joomla 1.5), v1.6.15 (for Joomla 1.6), v1.7.15 (for Joomla 1.7)
Released Nov 15, 2011
Now uses Google Maps API v3!
Key advantages in Google Maps API v3 includes:
Built-in street view!
You no longer require the Google API Key - what this means is that you can now access the google maps from your local machine!
v1.0.16 (for Joomla 1.0), v1.5.16 (for Joomla 1.5), v1.6.16 (for Joomla 1.6), v1.7.16 (for Joomla 1.7)
Released Dec 24, 2011
New features:
Support for googleDirections multiple stopovers!
If no label is specified, will use addr or latlng as marker
Improved function for displaying marker
kml can now show marker too
Allow user to input addr as "37.4219720, -122.0841430"
v1.0.17 (for Joomla 1.0), v1.5.17 (for Joomla 1.5), v1.6.17 (for Joomla 1.6), v1.7.17 (for Joomla 1.7)
Released Jan 03, 2012
Thanks to feedback from Florian who found out that the reverse geocode lookup by Google sometimes do not gives the right mapping. Have modified the code so that the googleMaps plugin now maps the exact location when latitude/longitude is given.
This is a content plugin. As the name suggests, a content plugin is for use specifically within a Joomla article, which is managed by the com_content component.
Usually, a content plugin will not run in other components (it's originally designed to run within com_content only).
However, if you really want to a content plugin within other components, you may still achieve this by adding a trigger in your component.
You can find some documentation here: Supporting plugins in your component http://docs.joomla.org/Supporting_plugins_in_your_component
Comments
Thanks
?????
Dissertation writers
Usually, a content plugin will not run in other components (it's originally designed to run within com_content only).
However, if you really want to a content plugin within other components, you may still achieve this by adding a trigger in your component.
You can find some documentation here: Supporting plugins in your component
http://docs.joomla.org/Supporting_plugins_in_your_component
Regards,
/kksou
RSS feed for comments to this post