After getting a GPS unit over the holidays, I was keen to try mapping out a hiking trail on the Vancouver Trails site. After importing the tracks into MapSource and cleaning a few points up, I saved the file in .gpx format and imported that into Google Earth. It looked great!
From here, I could right-click on the data folder and export it to .kml or .kmz format.
To integrate KML files into Google Maps on your website, add the following lines of javascript after the map.addControl calls:
var kml = new GGeoXml("kml-file.kml");
map.addOverlay(kml);
The first file that I exported to .kml from Google Earth was over 250K and included thousands of lines of useless style code. So, I exported the Tracks as one file and then the Waypoints as another file and used the code above twice, once to load each file. Both of those files combined were much smaller at just 21K combined.
The only thing left was to export everything into one .kmz file and provide a link under the map so that users could click and the link would open the map into Google Earth automatically. Click here to open the Capilano Canyon file in Google Earth.
Most webmasters are usually analytics tools such as Google Analytics, Web Trends, or ClickTracks to measure the traffic to their websites. But what information is the most useful? The following are a few basic tips to follow:
These are just a few tips and there are many other things to look at with your web analytics software including geographic information, network information, and much more. However, sticking with the basics can help improve your site traffic with even the smallest of changes.
I came across a site where, every year, the copyright date in the footer had to be manually updated on every page! With PHP, the following snippet of code can be used so that the date automatically gets updated each year:
Voila. PHP takes the year from the server, so as long as your host’s server has the correct date, you’ll never have to update the copyright date again.