Skip to content

Commit

Permalink
updated from google maps v2 to v3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
karma4u101 committed Oct 16, 2011
1 parent 9ca44a1 commit 9a427c9
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,34 @@
</head>
<body class="lift:content_id=main" onunload="GUnload()">
<div id="main" class="lift:surround?with=default;at=content">
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAioxF5FgusXtcgBwrvEujhhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTQUfOxOXeD9edFujLJ5mTpl34dcQ" type="text/javascript"></script>
<script type="text/javascript">

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3.4&sensor=false&language=en"></script>
<!--
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAioxF5FgusXtcgBwrvEujhhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTQUfOxOXeD9edFujLJ5mTpl34dcQ" type="text/javascript"></script>
-->

<script type="text/javascript">

function drawmap(locations) {

var myOptions = {
zoom: 12,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
initialLocation = new google.maps.LatLng(locations.loc[0].lat, locations.loc[0].lng);
map.setCenter(initialLocation);
for(i=0; i<locations.loc.length; i++) {
var point = new google.maps.LatLng(locations.loc[i].lat,
locations.loc[i].lng);
var marker = new google.maps.Marker({
position: point,
title: locations.loc[i].title
});
marker.setMap(map);
}

}
/*
function drawmap(locations) {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
Expand All @@ -22,7 +47,7 @@
}
}
}

*/
</script>
<fieldset>
<legend>&nbsp;&nbsp;Cronus&nbsp;&nbsp;</legend>
Expand Down

0 comments on commit 9a427c9

Please sign in to comment.