Comments (12)
You will experience integer overflow at those zoom levels. It will work okay in some locations, but eventually it will overflow and crash.
from osmdroid.
Hm. We haven't seen an issue with that but I believe you. Is there a
recommended route for adding this sort of capability?
On Tue, Jun 17, 2014 at 2:01 PM, kurtzmarc [email protected] wrote:
You will experience integer overflow at those zoom levels. It will work
okay in some locations, but eventually it will overflow and crash.—
Reply to this email directly or view it on GitHub
#46 (comment).
from osmdroid.
What was the reason for not using doubles from the beginning?
from osmdroid.
I think it was because they were slow on original Android devices. That's why google uses ints everywhere for the map api (at least V1, haven't checked out V2).
from osmdroid.
Google seems to have moved to doubles at API v2.
https://developer.android.com/reference/com/google/android/gms/maps/model/LatLng.html
Also MapBox implementation (Osmdroid fork) has moved to doubles.
https://github.com/mapbox/mapbox-android-sdk/issues/61
from osmdroid.
I think the reason Google Maps used 1E6 is to have fixed precision when passing lat/longs around. They still (likely) have to convert to doubles to do Mercator calculations.
from osmdroid.
... and we probably have kept it around because we aim to mirror the Google Maps v1 API, even if it has been superseded by v2 that uses doubles. If we are going to break from that history, then I'd prefer doubles.
from osmdroid.
If we are going to break from that history, then I'd prefer doubles.
👍
from osmdroid.
doubles 👍
from osmdroid.
doubles 👍
from osmdroid.
I'd prefer to keep the consistency with v1. If we're going to go to v2 then do it completely.
from osmdroid.
I am going to close this question since it has been superseded by #48.
from osmdroid.
Related Issues (20)
- Create mapSnapShot app crashed
- osmdroid-mapsforge: Unable to add marker and draw poly line on the map HOT 2
- How to support GCJ-02 HOT 7
- Cannot navigate to a fragment after clicking on a marker HOT 1
- .
- Custom ZoomIn and ZoomOut buttons. How to implement custom zoomOut/zoomIn buttons? HOT 2
- Map animating to previous state after a couple of seconds with Jetpack Compose HOT 1
- java.lang.NullPointerException: Attempt to invoke interface method 'boolean org.osmdroid.views.overlay.OverlayManager.add(java.lang.Object)' on a null object reference HOT 2
- IP tracker and ad in wiki HOT 3
- open street map don't display
- TileSourceFactory US aviation maps don't load any more
- Writing and reading data from the real time database for Osmdroid HOT 1
- delete markers
- Animating the movement of a cursor along a polyline with two colors codes: the completed part and the part to do ? HOT 1
- displaying the route and deleting the marker zi database HOT 1
- BingMapTileSource always crash HOT 2
- Some issues when initializing mapsforge
- Zoom changes ignored if performed while an animation is underway HOT 1
- Issue: GroundOverlay bad placement when invalidate map
- GroundOverlay - Draw White Image on Android 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osmdroid.