I'll add to that, if you are creating multiple markers push it to an array for your markers, but if you are just using one give it a unique name that you can call later. Your this. is not the same this. as when the marker was created when you are calling the clear function.
On Thu, Jul 1, 2010 at 2:50 PM, Nathan Raley <[email protected]> wrote: > Yea, I'm with Rossko on this. The code appears to not relate this.point to > the marker you created above when you are calling your clear function. > > Try pushing the marker to an array so you know the exact location of the > marker when you are trying to remove it. Are you only working with one > marker or multiple markers and are you wanting to remove just the single one > or all of them? Also when are you calling the clear function? > > > On Wed, Jun 30, 2010 at 1:54 PM, Rossko <[email protected]>wrote: > >> > I'm migrating from V2 to V3 and using this example code so i can see >> > an overlay removal taking place >> >> Here is the v3 group >> http://groups.google.com/group/google-maps-js-api-v3/ >> >> > this.point.setMap(null); >> >> I wonder what 'this' is, at the time the function is called. Can't >> tell due to lack of context, it would help the v3 people if you give a >> link to a complete example webpage >> >> -- >> 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]<google-maps-api%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-maps-api?hl=en. >> >> > -- 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.
