You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I'm building a map using maplibre on iOS and I'm trying to fit an area.
I'm using setVisibleCoordinateBounds and if the map is pitched seems it doesn't fit well the area (see video), or better, the camera is different depending on old position+altitude; this behaviour is different and consistent if the pitch is 0, fitting well and always in the same way the desired area. See videos for more context.
To Reproduce
I created a minimal app to reproduce the behavior:
Sample.swift
@main
struct Sample: App {
var body: some Scene {
WindowGroup {
MapApp()
}
}
}
Description
I'm building a map using maplibre on iOS and I'm trying to fit an area.
I'm using
setVisibleCoordinateBounds
and if the map is pitched seems it doesn't fit well the area (see video), or better, the camera is different depending on old position+altitude; this behaviour is different and consistent if the pitch is 0, fitting well and always in the same way the desired area. See videos for more context.To Reproduce
I created a minimal app to reproduce the behavior:
Sample.swift
MapApp.swift
MapView.swift
MapConfig.swift
Extensions.swift
Expected behavior
Map should fit the area I desire with or without pitch
Screenshots
pitched.mov
notpitched.mov
Platform information (please complete the following
information):
Additional context
tried in both simulator and physical device
The text was updated successfully, but these errors were encountered: