-
Notifications
You must be signed in to change notification settings - Fork 20
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
Route path - drawing issue #121
Comments
It looks like the route is made of a series of paths, because the route isn't continuous. Perhaps some |
I use OSM for tiles. I have an array of coordinates, like a route (file attached) - coordinates.txt I convert the coordinates to points and get an array of points.
Result: |
Also, video attached. Screen.Recording.2024-10-24.at.22.19.42.mp4 |
Oh you're using MapComposeMP. You posted the issue on the Android native version, which is probably not affected by this issue. Nevertheless I'll have a look. |
It looks like there is a precision issue. When the map size is too big, converting coordinates from With using: private val maxLevel = 16
[...]
// notice the max scale change
val state = MapState(levelCount = maxLevel + 1, mapSize, mapSize, workerCount = 16) {
minimumScaleMode(Forced((1 / 2.0.pow(maxLevel - minLevel)).toFloat()))
maxScale(4f)
}.apply {
addLayer(tileStreamProvider)
scale = 0f // to zoom out initially
}
[...] The are no more holes in the route when zooming in. FWIW, I tested on an android device. |
Hello, how to fix this problem with displaying the route path?
I added a route, when the map is zoomed out, the route is displayed fine, but when the map is zoomed in, I have problems displaying the path.
I tried adding a
simplify
parameter in the add Path method, but nothing changed.Thanks.
The text was updated successfully, but these errors were encountered: