[android-developers] MapView Overlay problem
Hello, The case is that i want to show a route on a MapView. Something simple at first sight, simply i created a class that extends overlay and implement draw method. On this method i iterate over an array of GeoPoints and using a canvas y connect all points. It works fine more or less, but i am having issues when drawing long routes with many points. The problem is that application is very slow, and sometimes MapActivity is closed simply doing a zoom in or zoom out on the map with the route drawn... My question is how to improve performance on this situation Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] MapView Overlay problem
On Thu, Jun 30, 2011 at 4:46 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: On this method i iterate over an array of GeoPoints and using a canvas y connect all points. What's your actual code? It works fine more or less, but i am having issues when drawing long routes with many points. Define long routes and many points. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] MapView Overlay problem
hello, i have an activity with a MapView ad overlays. If i start a new activity and go back to my Activity with the map, i only see the map without my overlays. How can i save my overlays?? The mapView.onSaveInstanceState() does not save the overlays, does it? Or have i implement something wrong and the overlays should be visible after i come back to my MapActivity? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en