The code is:
$(document).ready(function(){
$("body").attr("onload",function(){
G.homepage();
if(G.mappa.isLoaded() == true){
setTimeout(function(){
var Point = new Array();
var mm = new GMarkerManager(G.mappa);
$("#response").append("addo: ravenna id: 18<br>");
G.geocoder.getLatLng('ravenna',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: ancona id: 17<br>");
G.geocoder.getLatLng('ancona',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: l\'aquila id: 16<br>");
G.geocoder.getLatLng('l\'aquila',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: terni id: 15<br>");
G.geocoder.getLatLng('terni',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: Alessandria AL, Italia id:
13<br>");
G.geocoder.getLatLng('Alessandria AL, Italia',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: Parma PR, Italia id: 12<br>");
G.geocoder.getLatLng('Parma PR, Italia',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: Livorno LI, Italia id: 11<br>");
G.geocoder.getLatLng('Livorno LI, Italia',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: Pisa PI, Italia id: 10<br>");
G.geocoder.getLatLng('Pisa PI, Italia',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: Firenze, Italia id: 9<br>");
G.geocoder.getLatLng('Firenze, Italia',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: TRENTO id: 8<br>");
G.geocoder.getLatLng('TRENTO',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: MODENA id: 7<br>");
G.geocoder.getLatLng('MODENA',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: VERONA id: 6<br>");
G.geocoder.getLatLng('VERONA',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: GENOVA id: 5<br>");
G.geocoder.getLatLng('GENOVA',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: venezia id: 4<br>");
G.geocoder.getLatLng('venezia',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: MILANO id: 3<br>");
G.geocoder.getLatLng('MILANO',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("addo: TORINO id: 2<br>");
G.geocoder.getLatLng('TORINO',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
$("#response").append("adde: Perugia, Italia id: 1<br>");
G.geocoder.getLatLng('Perugia, Italia',
function(point){
if(point){
mm.addMarker(new
GMarker(point),0,17);
}
});
},5000);
}
});
});
Some help?
On Sep 29, 3:12 pm, Andrew Leach <[email protected]>
wrote:
> On Sep 29, 2:09 pm, k8 <[email protected]> wrote:
>
> > Hi
> > wha is the best method to add many marker on a maps?
> > Now many times my all 20 marker is not applyed in a map, many time 17
> > marker.. etc..
>
> You have already asked that question, and received an
> answer.http://groups.google.com/group/google-maps-api/browse_thread/thread/e...
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
