Map

The map component is for embedding maps into pages.

Backpack-SwiftUI/MapMarker

Cocoapods Price Marker reference Pointer Marker reference Poi Marker reference view on Github

Day Night

Usage

Price Marker

The Price Marker receives a price string and a status. The status can be one of the following:


                                                
                                                public enum BPKPriceMapMarkerStatus {
                                                    case `default`
                                                    case focused
                                                    case viewed
                                                    case disabled
                                                }

Default Price Marker


                                                
                                                BPKPriceMapMarker(status: .default, price: "£123")

Focused Price Marker


                                                
                                                BPKPriceMapMarker(status: .focused, price: "£123")

Viewed Price Marker


                                                
                                                BPKPriceMapMarker(status: .viewed, price: "£123")

Disabled Price Marker


                                                
                                                BPKPriceMapMarker(status: .disabled, price: "Sold out")

Pointer Marker


                                                
                                                BPKPointerMapMarker()

Poi Marker

The Poi Marker receives an icon and a status. The status can be one of the following:


                                                
                                                public enum BPKPoiMapMarkerStatus {
                                                    case `default`
                                                    case focused
                                                    case disabled
                                                }

Default Poi Marker


                                                
                                                BPKPoiMapMarker(status: .default, icon: .landmark)

Focused Poi Marker


                                                
                                                BPKPoiMapMarker(status: .focused, icon: .landmark)

Disabled Poi Marker


                                                
                                                BPKPoiMapMarker(status: .disabled, icon: .landmark)