Thanks :) You helped me a lot! On 26 Aug., 20:07, "[email protected]" <[email protected]> wrote: > On Aug 26, 10:45 am, Benjamin <[email protected]> wrote: > > > Hey, > > i've got a problem... many others had it too as i can read in the web. > > But i don't find an answer. > > > On my page, you can make markers. When make a new one, the old one has > > to disappear. > > The "alert" with die "idiot" appears but the marker doesn't disappear. > > (You can read in the code to know what i mean. > > >http://www.rindtweb.de/map/test.html > > this line creates a new GMarker and attempts to remove it... > map.removeOverlay(new GMarker(old)); > > you need to keep a reference to the original marker if you want to > remove it. > > Try this: > old = new GMarker(point); > map.addOverlay(old); //setzt neuen punkt, blos alter ist auch noch > da.. > map.panTo(point);} > > Then change the removeOverlay to: > map.removeOverlay(old); > > -- Larry > > > > > > > Can you help me? > > Thanks a lot! :)
-- You received this message because you are subscribed to the Google Groups "Google Maps API" 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?hl=en.
