PDA

View Full Version : Google Maps - Display stores locations + info



cydia
28 Jan 2011, 1:51 PM
I want to display a Google Map with some markers to display stores locations.

When user touch any marker on the map a box appears with the name of the store, the address and the phone number.

It's probably basic and easy to do but i search information since many days and i don't find how can i do it.

Anyone can help me?

Thx :)

Cydia

cydia
31 Jan 2011, 6:11 AM
no one can help me or give me some links to find usefull information about how to use google maps wit sencha? :-(

flyingmachete
31 Jan 2011, 7:27 AM
How to use a google map with Sencha: -

http://dev.sencha.com/deploy/touch/docs/?class=Ext.Map

Be aware that the Sencha Touch getting started guide is out of date? look at the scripts on the examples instead: -

http://dev.sencha.com/deploy/touch/examples/map/ (http://dev.sencha.com/deploy/touch/examples/map/)

To add markers, use Google's developer documentation and Sencha Touch api.

http://code.google.com/apis/maps/documentation/javascript/basics.html


Hope that helps?

cydia
31 Jan 2011, 9:28 AM
hi flyingmachete,

thank you for reply :-)

i'm not developper, just a girl who wants to learn herself.

ok, now i understand how to add a marker.

did you know how can i add a marker automatically with my current position? i want to have a map with a marker of my home address and another marker with my position anywhere in the world in realtime. is it easy to do?

flyingmachete
31 Jan 2011, 9:44 AM
No worries same here, I'm not a developer just a hobbyist.

To achieve what you're after, what you need to do is learn about geolocation.
I think it's part of the HTML5 specification, so you'll need a modern browser like chrome, safari and firefox
Have at look at this guide: -

http://diveintohtml5.org/geolocation.html

It's also on the Google Maps API website: -

http://code.google.com/apis/maps/documentation/javascript/basics.html

This is a demo of geolocation, I wrote: -

http://www.zawaung.co.uk/mobile/iWebkit5.0.4/whereami_v3/

Lots for you to read..;)

cydia
31 Jan 2011, 10:47 AM
you are really friendly flyingmachete, thank you :-)

you are right, a lot for me to read :-)

your demo link doesn't work, 404 error page... but a really cool 404 error page, waw :-)

could you check the link and send it again?

thank you for your help :-)

cydia

flyingmachete
31 Jan 2011, 11:06 AM
oops, the url should be

http://www.zawaung.co.uk/mobile/iWebKit5.04/whereami_v3/

No probs, have fun reading and programming!