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.

6.0.2 IMapController lacks API, MapController offers

See original GitHub issue

Issue Type

[ X] Question [ X] Improvement

Description and/or steps/code to reproduce the problem

This is a minor quirks.

Trying to investigate #1040 I realize, that there is a new 6.0.2 method for simultaneously changing position and zoom. I wanted to use this, but then realize I programmed against IMapController and not MapController and the abstract interface lacks the new feature.

Version of osmdroid the issue relates to:

6.0.2-SNAPSHOT

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
spyhunter99commented, May 25, 2018

i think the interface exists because at one point, someone wanted to have a single api that can be used with both google maps v1 and with osmdroid. I think the usage of the google maps version is probably minimal to the point where it can be deprecated. The iMapController interface should be maintained though. I know of a few users that have custom implementations.

0reactions
spyhunter99commented, Jun 2, 2018

@InI4 the only method i could see that was missing in the interface was this one

void animateTo(final IGeoPoint point, final Double pZoom, final Long pSpeed);

is that what this issue is referring to?

Read more comments on GitHub >

github_iconTop Results From Across the Web

IMapController
An interface that resembles the Google Maps API MapController class and is implemented by the osmdroid MapController class. Method Summary. All Methods Instance ......
Read more >
Attempt to invoke interface method 'void org.osmdroid.api ...
1 Answer 1 ... Your order of initialization is wrong. mapController isn't initialized yet. mapController gets initialized in setupOverlay() :
Read more >
Index (osmdroid-android 6.0.1 API) - Javadoc.io
Returns a set of layout parameters with a width of ViewGroup.LayoutParams.WRAP_CONTENT , a height of ViewGroup.LayoutParams.WRAP_CONTENT at the GeoPoint (0, 0) ...
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