mapbox-maps-ios
mapbox-maps-ios copied to clipboard
Dynamic margins for Ornament position
New Feature
As a developer, I want to have an option in LogoViewOptions and similar types in OrnamentOptions to provide a dynamically changing margin. In what form to expose this, I'm not sure. The most robust would be auto-layout constraints.
mapView.ornaments.options.logo.constraints = { (logo: UIView) -> [NSLayoutConstraint] in [
logo.bottomAnchor.constraint(equalTo: searchPanel.topAnchor),
logo.leadingAnchor.constraint(equalTo: view.saveAreaLayoutGuide.leadingAnchor),
]
Why
Some applications might have a draggable bottom bar, example from Google Maps. I haven't found a performant and smooth way to implement such behavior using Maps SDK.
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.