Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extends Projection #536

Open
StalkerExplorer opened this issue Apr 14, 2023 · 1 comment
Open

extends Projection #536

StalkerExplorer opened this issue Apr 14, 2023 · 1 comment

Comments

@StalkerExplorer
Copy link

How i can extends Projection? What's need constructor class?
I can see, long and boolean variable.
Can you help me, with a short example code java?

@mtehver
Copy link
Contributor

mtehver commented Apr 18, 2023

Good question, unfortunately the short answer is that you can not. Projections are native class wrappers, but without any virtual overridable functions on Java side. The constructor you are referring is intended for internal use and is basically used to connect native object to the wrapped Java object.

SDK makes some assumptions regarding monotonicity when converting between coordinate systems, thus we support only the 2 most common projections currently. If you need to use specific projections for you data, but want to display the map in WebMercator, then you can use Proj4J library on Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants