Need an example to place marker on the map

19 views
Skip to first unread message

Eishita

unread,
Oct 26, 2010, 7:47:36 PM10/26/10
to google-map...@googlegroups.com
Hi there!

I'm at the very first step of learning javascript. I looked at lots of examples of google map api but could not find any example that shows how to place marker on the map when clicked on the map.

Any sort of help will be appreciated.
Thanks in advance.

geoco...@gmail.com

unread,
Oct 26, 2010, 8:08:29 PM10/26/10
to Google Maps JavaScript API v3
On Oct 26, 4:47 pm, Eishita <eze...@gmail.com> wrote:
> Hi there!
>
> I'm at the very first step of learning javascript. I looked at lots of
> examples of google map api but could not find any example that shows
> how to place marker on the map when clicked on the map.

You mean like this:
http://www.geocodezip.com/v3_example_click2add_infowindow.html

-- Larry

Eishita

unread,
Oct 26, 2010, 8:18:02 PM10/26/10
to Google Maps JavaScript API v3
Thanks... That's what I wanted. Can I use it for multiple marker
placement as well? I apologize if the question sounds stupid.

On Oct 26, 6:08 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:

geoco...@gmail.com

unread,
Oct 26, 2010, 8:36:37 PM10/26/10
to Google Maps JavaScript API v3
On Oct 26, 5:18 pm, Eishita <eze...@gmail.com> wrote:
> Thanks... That's what I wanted. Can I use it for multiple marker
> placement as well?

You can. It is specifically written to only have one marker, you can
undo that. But I assume you want to save the positions of those
markers so they are there when you come back to the map.

You might want to look at some of these articles:
http://code.google.com/apis/maps/documentation/javascript/articles.html

-- Larry


>
> On Oct 26, 6:08 pm, "geocode...@gmail.com" <geocode...@gmail.com>
> wrote:
>
>
>
> > On Oct 26, 4:47 pm, Eishita <eze...@gmail.com> wrote:
>
> > > Hi there!
>
> > > I'm at the very first step of learning javascript. I looked at lots of
> > > examples of google map api but could not find any example that shows
> > > how to place marker on the map when clicked on the map.
>
> > You mean like this:http://www.geocodezip.com/v3_example_click2add_infowindow.html
>
> >   -- Larry
>
> > > Any sort of help will be appreciated.
> > > Thanks in advance.- Hide quoted text -
>
> - Show quoted text -

Eishita

unread,
Oct 26, 2010, 9:16:34 PM10/26/10
to Google Maps JavaScript API v3
Yes, I want to store the lat and lang to database in server. I'll get
back to you if I don't find anything effective.

Thanks a lot!

On Oct 26, 6:36 pm, "geocode...@gmail.com" <geocode...@gmail.com>
Reply all
Reply to author
Forward
0 new messages