sasafca | J'ai trouvé une solution si ça peut intéressé !
Code :
- <script>
- function myMap() {
- var myLatLng = {lat: 45.255215, lng: 4.692265};
- var mapCanvas = document.getElementById("map" );
- var mapCanvas1 = document.getElementById("map1" );
- var marker = new google.maps.Marker({
- map: map,
- position: myLatLng,
- title: 'Galaxi Phone'
- });
- var marker1 = new google.maps.Marker({
- map: map,
- position: myLatLng,
- title: 'Galaxi Phone'
- });
- var mapOptions = {
- center: new google.maps.LatLng(myLatLng),
- scrollwheel: false,
- zoom: 18
- }
-
- var map = new google.maps.Map(mapCanvas, mapOptions);
- marker.setMap(map);
- var map1 = new google.maps.Map(mapCanvas1, mapOptions);
- marker1.setMap(map1);
- }
- </script>
- <script src="https://maps.googleapis.com/maps/api/js?callback=myMap"></script>
|
Encore merci à tous ! |