Hi Pam, The demo is great, that's exactly what I wanted. I really appreciate the time you spent on this and I'm sure the demo will help many others,
Thanks, Sebastien On Apr 10, 1:31 am, pamela fox <[email protected]> wrote: > Hi Sebastien- > > Okay, I've made a simple demo that does a text/categorysearchof > markers:http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/MarkerTextS... > > - pamela > > On Mon, Apr 6, 2009 at 3:12 AM, Sebastien <[email protected]> wrote: > > > Hi Pam, > > Yes that's exactly what I want to do. I noticed you added a "category" > > or "type" column to your example on bars and restaurants. I want the > > user to be able to perform asearchon those keywords, found in the > > XML. > > I'm new to flex, and have no idea where to begin. Do you have a demo > > on this? > > > Thanks, > > > Sebastien > > > On Apr 5, 9:50 am, pamela fox <[email protected]> wrote: > >> Hi Sebastien- > >> Are you trying to add a full-textsearchto the code? If so, you could just > >> add keywords to your array of markers, and when doing thesearch, just > >> iterate through the title, description, and keywords for each marker and > >> return it as long as it matches thesearchquery. > > >> - pamela > > >> On Fri, Apr 3, 2009 at 7:23 AM, Sebastien > >> <[email protected]>wrote: > > >> > Hi Pam, thanks alot for your answer. > >> > That demo is getting pretty close to what I want to do, but consider > >> > this: > >> > If we go back to your demo on "Toggling Marker Categories" - which > >> > also loaded from an XML where each marker had a "category" attribute > >> > (bar or restaurant) - do you think it would be possible for the user > >> > to perform asearchon those categories? Example: by typing > >> > "restaurant" in thesearchbar he would see all the restaurant marker > >> > (just as if he had untoggled "bars"). > >> > That would be great. > > >> > Thanks very much for your help, > > >> > Sebastien > > >> > On Mar 31, 11:47 am, pamela fox <[email protected]> wrote: > >> > > Hi Sebastien- > >> > > There is now a demo of how tosearchmarkers loaded from XML for the > >> > closest > >> > > markers to an address: > >> >http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/MarkerXmlSe... > > >> > > - pamela > > >> > > On Tue, Mar 31, 2009 at 6:46 AM, pamela fox <[email protected]> > >> > wrote: > >> > > > Hi Sebastien- > >> > > > It uses the Google AJAXSearchAPI via HTTPService, yes, and then uses > >> > the > >> > > > open-source JSON parser to turn the JSON result into AS3 objects and > >> > display > >> > > > them on the map. If thesearchisn't working for you, check your NET > >> > > > requests to see if the request is being sent off correctly, and what > >> > > > it > >> > > > returns. > > >> > > > If you have a KML file on a public domain that Google has indexed, > >> > > > you > >> > can > >> > > > use the LocalSearchon that (using the site: restrict operator. See: > > >> > > >http://googlemapsapi.blogspot.com/2008/05/geo-search-20-data-in-data-. > >> > .. > > >> > > > Otherwise, you can just do asearchin ActionScript of your markers. > >> > You > >> > > > can do for loop testing GLatLng.distanceFrom on all of the > >> > > > coordinates, > >> > and > >> > > > just show the closest ones. > > >> > > > - pamela > > >> > > > On Sun, Mar 29, 2009 at 4:54 AM, Sebastien > >> > > > <[email protected] > >> > >wrote: > > >> > > >> Hi, > > >> > > >> I'm trying to set up my own "LocalSearch", based on this example: > > >> > > >>http://gmaps-samples-flash.googlecode.com/svn/trunk/demos/LocalSearch. > >> > .. > > >> > > >> I haven't been very good at understanding how this works. Does it > >> > > >> use > >> > > >> the Google AJAXsearchAPI? > >> > > >> I downloaded the zip pack (with the JSON files) on my computer, > >> > > >> tried > >> > > >> to compile the map with Flex Builder, but the "Searchthis site" > >> > > >> option doesn't work anymore. > > >> > > >> My questions: > >> > > >> - Where does this LocalSearchmap get its information? I haven't seen > >> > > >> any reference to a database or kml file in the code. > >> > > >> - Can I make thissearchtool work on my own XML file (I have a list > >> > > >> of markers)? > >> > > >> - If this doesn't work on an XML file, how can i perform asearchon > >> > > >> an XML file? > > >> > > >> Thanks for your help! > > >> > > >> Sebastien --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
