Salut,
Est ce que quelqu'un a un script pour google map api avec possibilité de changer l'adresse dynamiquement? J'utilise ASP.
Merci pour votre aide.
Salut,
Est ce que quelqu'un a un script pour google map api avec possibilité de changer l'adresse dynamiquement? J'utilise ASP.
Merci pour votre aide.
Qu'est-ce que tu veux faire exactement?
- Capt.
Proverbe Shadok:
S'il n'y a pas de solutions, il n'y a pas de problèmes
Comme tu as été capable de poster ce message. Tu l'es surement pour taper google map api dans google, non ?
Et en plus, tu as même une documentation à ta disposition (Docs).
Ouf... C'est pas très diplomate ça...
- Capt.
Proverbe Shadok:
S'il n'y a pas de solutions, il n'y a pas de problèmes
Je veux un script comme ce genre parce que celui la ne marche plus.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title><%=request.QueryString("adresse")%></title> <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAfiQdpJ9supzq6oNEwKLw7RSekOGvW7h90KIhQhGh9SFbJCi9HRTWHZxnsssuQjLD3HC-uUOhcZayIA" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); } } //]]> </script> </head> <body onload="load()" onunload="GUnload()"> <div id="map" style="width: 500px; height:495px"></div> <div align="center"> <script> function showAddress(address) { geocoder.getLatLng( address, function(point) { if (!point) { alert(address + " non trouvée"); } else { map.setCenter(point, 15); var marker = new GMarker(point); map.addOverlay(marker); //marker.openInfoWindowHtml(address); } } ); } </script> <script type="text/javascript"> var map = new GMap2(document.getElementById("map")); map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl()); map.addControl(new GScaleControl()) ; var geocoder = new GClientGeocoder(); showAddress("87 rue bobillot, paris"); map.setMapType(G_PLAN_TYPE); </script> <a href="#" onclick="window.close()"><strong>Fermer</strong></a> <a href="#" onclick="print()"><strong>Imprimer</strong></a> </div> </body> </html> </body> </html>
Je pense que si tu pouvais expliquer les fonctionnalités que tu désires, tu trouverais surement plus de réponses, parce que si il faut analyser ce que fait ton code pour pouvoir te répondre.
Bon courage
Salut,
Je travail dans une application en ASP et je veux un script qui me permet de changer l'adresse a chaque fois. Chaque page a des informations contenant une adresse et a chaque clique du bouton voir la map il récupère l'adresse et la vile.
Normalement ce script marchait très bien avant.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/> <title><%=request.QueryString("adresse")%></title> <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAfiQdpJ9supzq6oNEwKLw7RSekOGvW7h90KIhQhGh9SFbJCi9HRTWHZxnsssuQjLD3HC-uUOhcZayIA" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); } } //]]> </script> </head> <body onload="load()" onunload="GUnload()"> <div id="map" style="width: 500px; height:495px"></div> <div align="center"> <script> function showAddress(address) { geocoder.getLatLng( address, function(point) { if (!point) { alert(address + " non trouvée"); } else { map.setCenter(point, 15); var marker = new GMarker(point); map.addOverlay(marker); //marker.openInfoWindowHtml(address); } } ); } </script> <script type="text/javascript"> var map = new GMap2(document.getElementById("map")); map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl()); map.addControl(new GScaleControl()) ; var geocoder = new GClientGeocoder(); showAddress("<%response.Write(request.QueryString("adresse")& ", " &request.QueryString("ville"))%>"); map.setMapType(G_PLAN_TYPE); </script> <a href="#" onclick="window.close()"><strong>Fermer</strong></a> <a href="#" onclick="print()"><strong>Imprimer</strong></a> </div> </body> </html> </body> </html>
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager