Comments (3)
@marcoboerner Thank you for reporting this, the method should be available in Snapshotter too.
Internal ticket to track: https://mapbox.atlassian.net/browse/MAPSIOS-1323
from mapbox-maps-ios.
Hi, if you are using this method, it is deperecated now as it was quite counter-intuitive https://docs.mapbox.com/ios/maps/api/11.3.0/documentation/mapboxmaps/mapboxmap/camera(for:padding:bearing:pitch:)-5juqy
If you want the resulting camera to have the specific padding, use this method https://docs.mapbox.com/ios/maps/api/11.3.0/documentation/mapboxmaps/mapboxmap/camera(for:camera:coordinatespadding:maxzoom:offset:)
let camera = map.camera(for:coordinates, camera: CameraOptions(padding: ..desired padding here))
Note: The coordinatesPadding
parameter is different to camera.padding.
from mapbox-maps-ios.
@persidskiy I did change this for the MapboxMap methods and it works.However, the Snapshotter doesn't have those new methods yet, but the same issue exists. In this case, it only works when we set the padding on the CameraOptions object manually again after creating it.
from mapbox-maps-ios.
Related Issues (20)
- Jerky Movement of ViewAnnotation HOT 4
- Adding system UIImages to map gives `mismatched image size` HOT 1
- Pure SwiftUI Map Snapshot Capabilities HOT 3
- Mapbox Maps SDK crashes with Symbol layer! HOT 1
- Crash when loading glb model files via addStyleModel HOT 5
- App freezes when clicking the attributionButton on iOS 17.4.1 HOT 1
- iOS: camera.zoom calculates smaller zoom for camera(for:) initially HOT 4
- FollowPuckViewportState suffers a visual delay when target zoom level is equal to the current zoom level of the map HOT 1
- SDK Crash : DefaultLocationProvider.swift - Attempted to read an unowned reference but object was already deallocated HOT 2
- MTLTextureDescriptorInternal validateWithDevice: crash HOT 1
- Crash in mapbox::common::CleanupManager::cleanup() HOT 1
- Polyline "Cannot assign value of type 'String.UnicodeScalarView.SubSequence'" HOT 6
- Model Position Incorrectly Changed from Centre for some Coordinates HOT 6
- ITMS-91056: Invalid privacy manifest HOT 5
- Create CircleLayers with a Physical Unit Radius HOT 1
- No way to customize font on SwiftUI PointAnnotation HOT 1
- Position of layers in PointAnnotationManager and Cluster code does not affect the order on the screen HOT 2
- ITMS-91056 HOT 1
- I need the initial center latitude and longitude for the map view after loading markers in swiftUI. HOT 2
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 mapbox-maps-ios.