Click Here


googleMaps plugin Tutorial 05: KML Files
Written by kksou   
Saturday, 24 March 2012

This is part 5 of a series of tutorial for the googleMaps plugin.

KML files allow you to do things such as displaying multiple markers or customized markers in your google maps.

KML Elements Supported in Google Maps

Not all KML elements are supported in Google Maps. Please refer to the following 2 documents for details:


Specifying KML files

To use kml files, use the following syntax:

{googleMaps lat=37.4319720 long=-122.0941430
zoom=12 width=100% height=480
kml=http://www.kksou.com/gmap/samples/kml_sample1.kml}

Note that you still need to specify the latitude and longitude of the center of the map.

Powered by JoomlaGadgets

Turning off the Marker

  • By default, a red marker will appear at the point where you specify the center of the map
  • You can turn off the red marker by using the parameter marker=0

Default Red MarkerMarker Turned Off
{googleMaps lat=37.4219720 long=-122.0841430
width=100% height=480 zoom=11 kml=http://www.kksou.com/gmap/samples/kml_sample1.kml}
{googleMaps lat=37.4219720 long=-122.0841430
width=100% height=480 zoom=11 marker=0 kml=http://www.kksou.com/gmap/samples/kml_sample1.kml}

Specifying Zoom Level

You can specify the zoom level in displaying the KML file.

Zoom = 12Zoom = 10
{googleMaps lat=37.4219720 long=-122.0841430
marker=0 width=100% height=480 zoom=12 kml=http://www.kksou.com/gmap/samples/kml_sample1.kml}
{googleMaps lat=37.4219720 long=-122.0841430
marker=0 width=100% height=480 zoom=10 kml=http://www.kksou.com/gmap/samples/kml_sample1.kml}

References for KML files

Here are some references if you wish to learn more about the KML files:

Tutorials for the googleMaps plugin

Tutorials for the googleDirections plugin

Tutorials for the googleDirections_to_here plugin


 
Parse error: syntax error, unexpected '=' in /home/fann/kksou.com/php-gtk2/components/com_sef/cache/shCacheContent.php on line 27087