I'm not sure this is what you want, but the following link:
http://www.zgroks.com/ReadWriteMarkers.html includes a working example
that allows any user to add markers to the map and stores the markers
on an SQL database. After the marker is 'saved' to the SQL database it
displays a generic marker *until* the user re-loads the page. Then it
shows the 'new' marker. It's based on the tutorial that you cite along
with the other related one (one reads from the SQL database and one
writes to the database). It uses AJAX and PHP with v3.
This example does not show the selected icon until the page is
refreshed which sounds like what you want. However, if zoom and center
of the map were saved prior to a refresh but after the new marker was
added, it would be more responsive in terms of the AJAX refresh (as it
is when the user refreshes the map it goes to the default zoom and
center even though the new markers are added).
My apologies if this is confusing but most of the work is done in the
main javascript file which you can easily view at the linked site. The
difficult part for me was combining the two examples into a single
script into one that reads and writes. The PHP files that are used in
my example are basically exactly the same as the ones in the
example(s) you cite, so using the main script might be a starting
point for improvement to my attempt.
Regards,
Bob
On Jun 30, 2:24 pm, Bryn Kaufman <
brynkauf...@gmail.com> wrote:
> I foundhttp://
code.google.com/apis/maps/articles/phpsqlajax_v3.htmland it