question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

5.1: problem with animateTo()

See original GitHub issue

Hello,

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:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
2ndGABcommented, Mar 8, 2016

Hello spyhunter99, I don’t have any problem anymore with this feature. I don’t really know what the problem was sorry.

0reactions
spyhunter99commented, Mar 7, 2016

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:

I tried Open Map, I suppose it’s the app you are talking about, and it seems working correctly.

— Reply to this email directly or view it on GitHub https://github.com/osmdroid/osmdroid/issues/264#issuecomment-193202838.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found