Salut a tous,
J'ai un probleme avec mon fichier kml. Il ne s'affiche pas.
J'ai un peu tout fait comme ils le disent dans les tuto ou sur le site de google api mais rien n'y fait.
Hier mon kml avait les latitudes et longitudes d'echanger donc je voyais mes points en antartic mais au moins cela s'afficher. Aujourd'hui je fais quelques tests en l'occurance je renseigne un peu plus mon kml et plus rien...
si vous pouvez m'aider?
Mon fichier map.html :
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 <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> <Document> <Placemark> <name>Pizza Hut</name> <description>2nd Street Pike 725Richboro 18954</description> <Point> <coordinates>-075.015228,40.208412</coordinates> </Point> </Placemark> <Placemark> <name>Pizza Hut</name> <description>West End Blvd 320Quakertown 18951</description> <Point> <coordinates>-075.353544,40.435367</coordinates> </Point> </Placemark>...
Merci d'avance.
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 <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2.s&sensor=false&key=ABQIAAAAn4fqWF6gaZU0hRtowpiIfBRduL_scwZ5JlS_WYaRX69sqfcLKRTDwHIHZMBRZUylqer4lTgnxLPO_w"> </script> <script src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js" type="text/javascript"></script> <script src="http://www.google.com/uds/api?file=uds.js&v=1.0" type="text/javascript"></script> <script type="text/javascript"> function load() { if (GBrowserIsCompatible()) { var m = document.getElementById("map"); m.style.height = "400px"; m.style.width = "600px"; var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(0, 0), 3);//initialize where map.addControl(new GSmallMapControl());//fleche pour diriger map.addControl(new GMapTypeControl());//switch between map and satelite //local search map.addControl(new google.maps.LocalSearch()); //kml var kml = new GGeoXml("http://monsite.free.fr/klmfeed.kml?s=879"); map.addOverlay(kml); }
Sandrine
Partager