• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

It prints me pointer repeatedly  RSS feed

 
Ranch Hand
Posts: 1292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my main class.It works fine.But when i moving it repeatdly prints the current location pointer.I mean after i move to new location it doesn't remove old location pointer.It prints me pointer in both location.So when i move with phone it shows me the pointer as a line.How to remove the old Pointer ?



 
Saloon Keeper
Posts: 5046
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I only see the code adding overlays; where are any being removed?
 
sam liya
Ranch Hand
Posts: 1292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what about if i make the variables Drawable drawable,CustomItemizedOverlay itemizedOverlay gloabal?
Is it correct ?
 
Tim Moores
Saloon Keeper
Posts: 5046
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what their visibility has to do with adding vs. removing overlays?
 
sam liya
Ranch Hand
Posts: 1292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it ok removing overlay starting onlocationchange method.So each time location change it removes tha old overlay nad print a new one.is it correct ?


 
Tim Moores
Saloon Keeper
Posts: 5046
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it work?
 
sam liya
Ranch Hand
Posts: 1292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
unable to check.Because i am at now home.So i have to walk now as i don't have Bike now.
I can test tomorrow morning when i am travelling to office.Anyway can you tell me is it the correct way ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!