[Google Maps API v2] an array of marker names for autosuggest
Hi,
I know this is only vaguely related to the API, but maybe someone has
an idea for me... I'm making a search box so that people can search
for markers on my map by name (the name attribute in the xml file),
which is going ok as you can see at the bottom of the page here:
http://xelawho.com/map/index2.htm
But I want to add an autosuggest function. At the moment the
autosuggest works off a hard-coded array of words that are set as a
global var (the "var customarray=new Array('an apple', etc" bit) but
I'd like to make that an array of the marker names instead.
I've tried doing that various ways and in various places, but all I
get is either nothing or a "customarray is undefined" error.
can anybody throw me a line? thanks in advance...
--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home