implémentation de l'API Google map
Bonjour,
je voudrai implémenter l'api googleMap, j'ai essayé le code suivant je ne vois pas pourquoi la carte ne s'affiche pas
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<title>Google Map API V3</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
window.onload = function() {
var myLatlng = new google.maps.LatLng(48.88766182, 2.34451854);
var myOptions = {
zoom: 8,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var myMap = new google.maps.Map(
document.getElementById('map'),
myOptions
);
var marqueur = new google.maps.Marker({
position: new google.maps.LatLng(48.88766182, 2.34451854),
map: myMap
});
};
</script>
</head>
<body>
<div id="map" style="width:100%; height:100%">
</div>
</body>
</html> |