· 6 years ago · Feb 08, 2020, 05:44 PM
1<!-- Google Maps -->
2<div id="googleMap" style="width:100%;height:420px;"></div>
3 <script>
4 var geocoder;
5 var map;
6 var markersArray = [];
7
8
9function myMap()
10{
11 //POSITION1//=new google.maps.LatLng(47.357650, 4.910614);
12 //POSITION2//=new google.maps.LatLng(47.326917, 5.049092);
13 //POSITION3//=new google.maps.LatLng(47.317650, 4.910614);
14
15 var mapOptions= {
16 center://METTRE LE POINT CENTRALE DE LA MAP EXEMPLE: CANNES//,
17 zoom:16, scrollwheel: true, draggable: false,
18 mapTypeId:google.maps.MapTypeId.ROADMAP
19 };
20 var map=new google.maps.Map(document.getElementById("googleMap"),mapOptions);
21
22 var marker = new google.maps.Marker({
23 position: //POSITION1//,
24 });
25 marker.setMap(map);
26
27 var marker = new google.maps.Marker({
28 position: //POSITION2//,
29 });
30 marker.setMap(map);
31
32 marker.setMap(map);
33 var marker = new google.maps.Marker({
34 position: //POSITION3//,
35 });
36 marker.setMap(map);
37
38}
39</script>
40<script src="//API GOOGLE EXEMPLE: https://maps.googleapis.com/maps/api/js?key=TA_CLEF_API&callback=myMap//"></script>
41<!--
42Pour utiliser ce code avoir une api google GRATUITE est NECESSAIRE // pour l'avoir:
43Free Google API Key
44Google allows a website to call any Google API for free, THOUSAND of times a day.
45
46
47Go to https://developers.google.com/maps/documentation/javascript/get-api-key to learn how to get an API key.
48
49Google Maps expects to find the API key in the key parameter when loading an API: <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&callback=myMap"></script>
50REMPLACER "YOUR_KEY" pa ta clef API obtenue plus tot.
51DE RIEN
52
53-->
54
55
56<!--
57DEV BY:
58░██████╗██╗░░██╗██╗░░░██╗███████╗██╗░░██╗░█████╗░
59██╔════╝██║░██╔╝╚██╗░██╔╝╚════██║██║░░██║██╔══██╗
60╚█████╗░█████═╝░░╚████╔╝░░░███╔═╝███████║██║░░██║
61░╚═══██╗██╔═██╗░░░╚██╔╝░░██╔══╝░░██╔══██║██║░░██║
62██████╔╝██║░╚██╗░░░██║░░░███████╗██║░░██║╚█████╔╝
63╚═════╝░╚═╝░░╚═╝░░░╚═╝░░░╚══════╝╚═╝░░╚═╝░╚════╝░
64LAST UPDATE: 02/08/2020
65-->