Populate map with markers

961 views
Skip to first unread message

Andi

unread,
May 28, 2011, 10:09:51 AM5/28/11
to google-map...@googlegroups.com
Hello , I am new in java developing and I need some help, I would like to populate my map with markers that I store in mySQL database ,How can I do this?

geoco...@gmail.com

unread,
May 28, 2011, 10:35:23 AM5/28/11
to Google Maps JavaScript API v3
Have you seen the "articles" section of the documentation?

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

-- Larry

Andi

unread,
May 28, 2011, 11:13:24 AM5/28/11
to google-map...@googlegroups.com
and where can I found something I need?

Rossko

unread,
May 28, 2011, 12:17:26 PM5/28/11
to Google Maps JavaScript API v3
> and where can I found something I need?

Your need (so far as we are told)
"would like to
populate my map with markers that I store in mySQL database"

This article in the section you were pointed to
http://code.google.com/apis/maps/articles/phpsqlajax_v3.html
is described as
"Shows how to use PHP/MySQL and the Google Maps API v3 to create a map
that polls data from a database and shows as markers."
If that isn't what you want, you may have to reveal a bit more about
why it isn't suitable, and what you would like instead.

Bob Torzynski

unread,
May 29, 2011, 7:30:54 AM5/29/11
to Google Maps JavaScript API v3
Hi Andi, I assume you mean new to javascript developing not java?
Anyway, this page: http://www.zgroks.com/ReadWriteMarkers.html is
based on the articles that are referenced in the other responses to
your post. It stores markers and the text that's associated with them
in an SQL database and shows them. The only difference is that the
articles set you up for two pages - one to add and one to read, this
does both. The user selects the icons they want to place in a dropdown
box (A-Z or 0-9) and enters the text for the infobox and it's saved
and retreived from an SQL database. Anyone can add markers but you
have to go into the database to remove markers. Maybe this will help.
Regards, Bob

On May 28, 10:09 am, Andi <m4tr...@yahoo.com> wrote:

Andi

unread,
May 29, 2011, 12:27:36 PM5/29/11
to google-map...@googlegroups.com
the site it`s what I want but it`s a problem because is not only javascript , it`s php and mysql, can you give me the javascript code with the database connection and the other stuff.

thank you

Rossko

unread,
May 29, 2011, 3:58:55 PM5/29/11
to Google Maps JavaScript API v3
> the site it`s what I want but it`s a problem because is not only javascript
> , it`s php and mysql, can you give me the javascript code with the database
> connection and the other stuff.

javascript runs in a browser environment on a client, it doesn't 'do'
server-side functions like database interfacing.

You don't have to use php, many other server side languages will talk
to MySQL. You could use java for example. The given example still
gives you two-thirds of the picture if you don't want to use the php
part, with a complete client side and database structure. There isn't
much else to do.

If you want someone to give you a complete application to your spec,
that's not developing its more a question of purchasing.
Reply all
Reply to author
Forward
0 new messages