Sorry for my english !
I want to see many adresses on a map ; I can see the first of my
selection but I don't know how to make a loop to see the forwarding
adresses.
My script :
Sélection des données :
<![CDATA[<% Set adrfact = oCon.execute("SELECT
code,nom,identifiant,adr, cp, ville, pays FROM matable where pays =
'DE' and cp like '32%' order by ville asc")%>]]>
Script of the map, where I think I must do the loop :
<script type="text/javascript">
//<![CDATA[
var map = null;
var geocoder = null;
function load(address)
{
if (GBrowserIsCompatible())
{
var map = new GMap2(document.getElementById("map"));
//map.setCenter(new GLatLng(48.9, 2.3), 7);
map.addControl(new GLargeMapControl());
map.addControl(new GScaleControl());
map.addControl(new GOverviewMapControl());
map.addControl(
new GMapTypeControl());
map.addMapType(G_PHYSICAL_MAP);
geocoder =
new GClientGeocoder();
if (geocoder)
{
geocoder.getLatLng
(
address,
function(point)
{
if (!point)
{
alert("Cette adresse est" +
" introuvable."+"\n"+"Veuillez la modifier.");
}
else
{
map.setCenter(point, 11);
var marker = new GMarker(point);
map.addOverlay(marker);
}
}
);
}
}
}
//]]>
</script>
To see the map :
<body onload="load('<%=adrfact(4)%>,<%=adrfact(5)%>,Allemagne')"
önunload="GUnload()">
Someone could help me ?
Thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---