Bonjour
dans une appli jquery, j'ai ce code pour afficher une carte :
Comment je peux ajouter un marqueur sur le point lat = 47.4833 et lng = 1.1833
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 $('.page-map').live("pagecreate", function() { var lat = 47.4833, lng = 1.1833; var latlng = new google.maps.LatLng(lat, lng); var myOptions = { zoom: 14, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map-canvas"),myOptions); });
Merci pour vos réponses
Partager