Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

It prints me pointer repeatedly  RSS feed

 
Ranch Hand
Posts: 1310
  • 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: 5234
143
  • 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: 1310
  • 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: 5234
143
  • 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: 1310
  • 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: 5234
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does it work?
 
sam liya
Ranch Hand
Posts: 1310
  • 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 ?
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!