CopyPastehas never been so tasty!

Rtanj

by milanfrulas

  • 0
  • 0
  • 0
173 views

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Google Earth Hacks - Custom Map</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAtdvYAbw5lDwcjzRdYrS7TBTO5BBP3GUfoyJwQWx-SsXI8R3DaBTs3FvpYmRvznYvltbRJUplZDgShQ" type="text/javascript"></script>
</head>
<body>
<div id="map" style="width: 600px; height: 400px; border:0px solid black;"></div>
    <script type="text/javascript">
    //<![CDATA[
  
    var map = new GMap(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    map.setMapType(G_HYBRID_MAP);
map.centerAndZoom(new GPoint(21.870695090653, 43.7703940374155), 4);
var publisher_id = 'pub-0951215584596149';
var adsManagerOptions = {
  maxAdsOnMap : 1,
  style: 'adunit',
  channel: '8747344393' 
};
adsManager = new GAdsManager(map, publisher_id, adsManagerOptions);
adsManager.enable();

    function createMarker(point, filename, icon) {
        var marker = new GMarker(point, icon);

        var html = "<div style=\"width: 250px; padding: 2px;\"><b>" + filename + "</b></div>";
        GEvent.addListener(marker, 'click', function() {
            marker.openInfoWindowHtml(html);
        });

        return marker;
    }

var point = new GPoint(21.870695090653,43.7703940374155);
var marker = createMarker(point, "X marks near mount Rtanj");
map.addOverlay(marker);

    //]]>
    </script>

</body>
</html>

Add A Comment: