Using SDK 1.6. I have a simple MapView that I'd like to set street view on. I setup a button in my application, and an onClick handler to do mapView.setStreetView(true); I then call mapView.invalidate(); because I believe this is how to update the view to get the blue outlines.
When I click on the "Street" button in my app, I can see in debugger that the setStreetView(true) is being called, but the display does not update. The second time I click on the Street view button, it goes through my code again, and this time the display changes and I get the blue outlines on the streets. Why isn't this occurring the first time I click on the button? After clicking the Street button once, if I then click on the map itself, then it draws the blue lines. I tried postInvalidate() also but got the same result, plus I didn't think that postInvalidate() was the appropriate method to call anyway. I read a posting online that said I should move the map by a pixel to get it to redraw itself. That doesn't seem right, unless there's a problem with setStreetView that hasn't been fixed yet. I checked the Issues list but didn't see anything. Any advice please? - dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

