On Feb 3, 12:09 pm, jandreoni <[email protected]> wrote: > I've worked my way through this tutorial (http://code.google.com/apis/ > maps/articles/phpsqlsearch.html), and I've got my map up and running > (still in a dev environment). What I would like to know is how to have > the user's address, when they search for a business nearest them, pop > up on the map as well as the results, as a green arrow or something.
You would have to write code to add a custom icon at the location returned by the geocoder. You can find the "green arrow" by searching google: http://www.google.com/search?hl=en&source=hp&q=Green+arrow+google+maps&aq=f&aqi=&oq= See Mike Williams' tutorial and the documentation for details on adding custom icons for GMarkers. Post back here if you run into trouble. -- Larry > Like on the Ace Hardware demo on the Store Locator tutorial page: > > http://code.google.com/apis/maps/articles/phpsqlsearch.htmlhttp://www.acehardware.com/mystore/storeLocator.jsp > > Here's the link to my map in it's dev state with test addresses: > > http://www.midwivesofmaine.org/storeLocator/locator.html > > On my map, type in "belfast, maine" and hit SEARCH. Now, ideally, I'd > like the map to zoom out as it does to include the users location as > well. To see Belfast on the map, scroll the map northeast a bit. > > Thank you! > > --Jason -- 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.
