I am using Leaflet 0.4.4,
I have a KML I would like to overlay on the map, how do I go about doing this?
Edit: I am already aware of https://github.com/CloudMade/Leaflet/issues/14, which directs you to download a plugin from http://psha.org.ru/b/leaflet-plugins.html.
I was hoping to have a demonstration of the implementation of how to add a KML overlay.
Edit [Solved]: I found the demo, here it is:
<script type='text/javascript'>
var map = new L.Map('map', {center: new L.LatLng(58.4, 43.0), zoom: 11});
var osm = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png');
var track = new L.KML("KML_Samples.kml", {async: true});
track.on("loaded", function(e) { map.fitBounds(e.target.getBounds()); });
map.addLayer(track);
map.addLayer(osm);
map.addControl(new L.Control.Layers({}, {'Track':track}));
</script>
You also need to make sure that you need to enable cross-origin resource sharing, I did this in PHP with:
<?php
header("Access-Control-Allow-Origin: *");
?>
The problem I was having was the Access-Control-Allow-Origin. Thanks all

kmllayer to a web map. So how is what you are asking, different from what you are showing? The more detailed and clear your question is, the more likely you are to get a satisfactory answer. – Get Spatial Sep 15 '12 at 0:13