Hey Erik, 1.) There is no way to retrieve the user's location within the flash API. Essentially what you will have to do is make a JS call from flash to retrieve the location. The best method for doing this is outline here: http://code.google.com/apis/maps/documentation/javascript/basics.html#Geolocation
2.) With a marker you can use Marker.setLatLng(LatLng), that would let you change the location of the marker. If you need to wipe only a specific group of markers on a regular basis, I would recommend using an array and storing references and then using that to help clear the appropriate markers. Jonathan ScribbleMaps.com On Aug 21, 1:18 pm, "liddell.erik" <[email protected]> wrote: > I am new to the google maps API for flash and am developing an AIR for > Android application. So far so good, all though i have two questions. > > I am placing a marker that shows where my user is on the map, as well > as a set markers that show where bus stops are, and a another set of > markers that show where the actual buses are. > > 1) I'd like to have the marker that shows where the user is, actually > point to the closest bus stop. i don't know if there is a built in > method for this or if in my flash library the custom icon would have > an arrow that rotates.. either way, i am clueless as to how to go > about this. > > 2) every ten seconds or so i want to clear and reset the bus markers > and the user marker but not the bus stop markers. i know how to clear > all markers but that seems like more work than is needed. whats the > best way to just update moviving markers lat and lon with out clearing > all markers and resetting them.. > > Erikhttp://gotoAndUse.me -- You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-api-for-flash?hl=en.
