Eita, muito obrigado deu certo...
its solution..
loop..
gmarkers[name] = marker;
htmls[name] = html;
side_bar_html += '<a href="#" onClick=\"unidade(\'' + name + '\')">' +
name + '<\/a><br>';
document.getElementById("icones_bar").innerHTML = side_bar_html;
....
Greate...
2009/2/4 [email protected] <[email protected]>
>
> On Feb 4, 8:31 am, Jefferson <[email protected]> wrote:
> Title translated: search for him by name maracdor
>
> > Hello, everyone, I am trying to do this search,
> >
> > http://econym.org.uk/gmap/example_map2a.htm
> >
> > so far this all right, but the information of the markers I
> > keep the bank from
> > data and generate an xml, but is the one that I search in ajax, and I
> > insert this link in the search result.
> >
> > Exe:
> > search: Jefferson
> >
> > Result: <a href="#" onclick=oncli(Nome of Jefferson Marcador)> </ a>
> >
> > I'm trying to do something like that, because the function push this
> > listing
> > the markers from 0 until the last couple .. according to the size of
> > the loop, but
> > I do not want to link this build number with the name of the markers,
> > something that can be stored in database.
> >
> > Thanks, any solution?
>
> You can give the markers an "id" if that is what you want to search
> for. Include the "id" in your xml and create an "associative" array
> of markers indexed by the "id" and use that for accessing the markers.
> E.g. if you had a marker with the id "Jefferson" you could do this:
> GEvent.trigger(gmarkers["Jefferson"], "click")
>
> -- Larry
>
>
>
>
>
> >
> > ----------------------------------
> >
> > Previous post ..
> http://groups.google.com.br/group/Google-Maps-API/browse_thread/threa
> > ...
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---