You want to construct Markers within a function you call and not
within the load or initialize function?
If the above is correct, then I think you need to do the following
1 Make sure the initialize or load function has finished executing
2 Within your custom function, make a call to GMarker such as
geo = new GClientGeocoder();
geo.getLatLng(address, function(point) {
var marker = new GMarker(point);
map.addOverlay(marker);
});
address is the address of the places you want to show
map is a GMap2 object
On Jun 25, 3:12 am, ammouna24 <[email protected]> wrote:
> Hello,
>
> How can i construct Markers not in the method load (or intialize).
> I use Local search and i try in my application to show some places
> that i have in the database after i do a call to a function.
> I wish, i have been clear enough.
>
> Thanks a lot,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---