Hello. I am trying to use a dropdown box to limit how many points are
read from mysql database by filtering the datetime field. my site is
located here:
www.myrecmaps.com (username: test password: testing)
the site opens with a default value of '7' for the dropdown box and
the sql filters out any points more than 7 days old. this works
perfectly on open. however, i have not been able to figure out how to
refresh the map when a new selection is chosen in the drop down box.
to read the markers from the database, an external file is called that
performs the following query:
$qry = "SELECT * FROM fishmarkers WHERE DATEDIFF(NOW(), datetime) <
$duration ORDER BY datetime";
where $duration is passed via the $_GET method from the calling page.
is there a way to refresh the map when a new $duration selection is
made that will preserve the mapcenter and zoom level? I am currently
using sessions so maybe it would make sense to store
$_SESSION('mapcenter') and $_SESSION('zoom')...? I am hoping somebody
has run into this need and can share code, as I am pretty new to
javascript.
thank you.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.