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 MapsNot all KML elements are supported in Google Maps. Please refer to the following 2 documents for details: Specifying KML filesTo 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. Turning off the Marker
Specifying Zoom LevelYou can specify the zoom level in displaying the KML file.
References for KML filesHere 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
|
||||||||||||||
| < Prev | Next > |
|---|





Comments
i have put the html code this {mosmap kml='http://..........kml'|overview='1'}
but the kml file with zoom is to 2 size..why?
Where's the mistake?
Thank you
Stefano
You are using a different plugin!
Please check the starting thttp://www.kksou.com/php-gtk2/#ag. Yours different from the one listed on this page, isn't it?
Regards,
/kksou
Well i am following your lessons, everything works except lesson 5 with KML
Everything loads markers, etc, except the maps. Where the maps should be just a white background appears.
Even if I try:
{googleMaps lat=37.4319720 long=-122.0941430 zoom=12 width=100% height=480 kml=http://www.kksou.com/gmap/samples/kml_sample1.kml}
It does not work.
If i take the kml out.. works normally.
Do you have any clue, anything i can be missing?
I used the same tag as you've written:
http://www.kksou.com/t1510/index.php?option=com_content&view=article&id=107:test-of-googlemaps-120916&catid=34:googlemaps&Itemid=54
Not sure why it didn't work on your site...
Regards,
/kksou
Please refer to: googleMaps plugin Tutorial 01: Getting Started
http://www.kksou.com/php-gtk2/Joomla-Tips-Techniques/googleMaps-plugin-Tutorial-01-Getting-Started.php
Item #2: Specifying Label for the Marker
I suppose you have specified the address using latitude and longitude. That's why you see lat and long being displayed. All you need to do is to add the tag "label".
Please give it a try and let me know if it works, ok?
Regards,
/kksou
I've tried your plugin and I say "excellent"
For display different markers, you need to use KML files as outlined in this tutorial.
You may want to refer to some of the references above: "References for KML files" for more details about KML.
You can also refer to the following article for a sample code: How to display multiple markers in different colors in Google Maps using KML file? http://www.kksou.com/php-gtk2/Joomla-Google-Maps-Samples/How-to-display-multiple-markers-in-different-colors-in-Google-Maps-using-KML-file.php
Regards,
/kksou
{googleMaps lat=10.273983 long=124.005428 width=870 height=700 maptype=SATELLITE zoom=13 kml=http://ruelluis.podserver.info/Evacenter.kml}
I'm trying this at localhost.
No, this plugin does not generate the KML file. But it can be used to display a KML file that you have generated somewhere else.
Regards,
/kksou
{googleMaps lat=52.766077 long=-1.214676 zoom=12 marker=0 kml=http://lfrs.nanagram.co.uk/maps/lfrs.kml}
RSS feed for comments to this post