A month ago I send an e-mail to Jan with the question if I can add an overlay (KML file). The answer was that this will be in v-next. So i decided to load 2 maps, 1 with pointers and 1 with overlay (showing my trip). What a nasty solution.
So today I decided to solve this. But as I have limited time, I will solve this in increments.
step 1) Load a predefined kml file into the map
- I created a kml-file, howto:: http://code.google.com/apis/kml/documen ... l_tut.html
- I edited components/com_phocamaps/views/map/tmpl/default.php
- After line 274 I added
Code: Select all
// added to support kml file
echo 'geoXml = new GGeoXml("[WRITE THE URL OF YOUR KML FILE HERE]");' ."\n";
echo 'mapPhocaMap.addOverlay(geoXml);' ."\n";
step 2) Load the kml file from the list of markers
- When time is on my side I will add the code to generate the KML file
- Of course I will post the solution here! It will probably look like http://code.google.com/apis/kml/article ... qlkml.html
step 3) Don't know yet, but open for suggestions.
See the result :: http://www.henkjanopreis.nl/index.php?o ... &Itemid=15 (sorry, loading time is crap and most of the site is in Dutch).