mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

Dynamic margins for Ornament position

Open S2Ler opened this issue 4 years ago • 1 comments

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.

S2Ler avatar Oct 19 '21 10:10 S2Ler

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

stale[bot] avatar May 02 '22 04:05 stale[bot]