Friday, April 23, 2010

Re: Map Marker Clear

> So what I want to do is each
> time I call my function I just want to clear the previous marker but
> the polyline should remain. So each time new markers will be
> populated. Any idea ?

Two approaches:
Remember what markers you added before. Remove those. Add the ne ones
(leave the polyline alone)
Or
Remember the polyline. Clear everything. Add the new markers. Add
the polyline.

Using an array to save details of markers as they are added to the map
is commonplace technique.

--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate