I need to get an extension in MediaWiki that can embed a GoogleMaps KML Layer using the code at the end of this post or attached file:
The input variables are:
Zoom (level)
Center (coordinates)
Internal URL (where the KMZ is located). But instead of parsing the url itself I would like to parse the name of the file rather than the location of it.
So In this example, the input would be the following:
Zoom: 11
Center: -35.092265,-70.667707
File: Planchon - Valle del Rio [login to view URL]
This is the file that I need to embed (also attached)
<!DOCTYPE html>
<html>
<style>
html, body, #map-canvas {
height: 100%;
}
</style>
<script src="[login to view URL]"></script>
<script>
function initialize() {
var centro = new [login to view URL](-35.092265,-70.667707);
var mapOptions = {zoom: 11,center: centro}
var map = new [login to view URL]([login to view URL]('map-canvas'), mapOptions);
var ctaLayer = new [login to view URL]({url: '[login to view URL]'});
[login to view URL](map);
}
[login to view URL](window, 'load', initialize);
</script>
<body>
<div id="map-canvas"></div>
</body>
</html>