5.1: problem with animateTo()
See original GitHub issueHello,
I have a problem, I think already had in 5.0.1 with animateTo()
that I have to often call twice to reach to the given location.
My code is:
btCenterMap.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
GeoPoint myLocation= new GeoPoint(site.getLatitude(), site.getLongitude());
mMapView.getController().setCenter(myLocation);
//mMapView.getController().animateTo(myLocation);
mMapView.getController().setZoom(Constants.OSM_DEFAULT_ZOOM);
}
});
so if I call setCenter()
, it works fine but if I call animateTo()
after zooming in/out and scrolling the map, I often don’t reach to requested location the first time I click my button.
Note: The problem is the same with zoomToBoundingBox(..., true)
Issue Analytics
- State:
- Created 8 years ago
- Comments:8
Top Results From Across the Web
android - Device specific bug with CompassOverlay? - Stack Overflow
I'm currently developing an app using OSMdroid 5.1 on a Samsung Galaxy Tab E. My problem here is I can't get the compass...
Read more >UIKit | Apple Developer Forums
Hello, I'm having a little issue with this code. struct nfcButton : UIViewRepresentable { @Binding var data: String @Binding var showData: Bool func...
Read more >HTML 5.1 2nd Edition: 6. Loading Web pages - W3C
(A Document created using an API such as createDocument() has no browsing context.) Each Document in a browsing context is associated with a ......
Read more >infinite animation - GSAP - GreenSock
the problem is this cloud animate to right after going to the left. i just want to make this move to left infinitely....
Read more >Maps SDK for iOS release notes - Google Developers
Fixed an issue with the generated module map for frameworks without headers. ... and requires iOS 6.0 or later (iOS 5.1 is no...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello spyhunter99, I don’t have any problem anymore with this feature. I don’t really know what the problem was sorry.
If it’s working there, then the problem is most likely in your code. Can you provide an example to recreate the issue?
On Mon, Mar 7, 2016 at 5:54 AM, Alain notifications@github.com wrote: