exposure-vic
Map
exposure-vic | Map | |
---|---|---|
4 | 5 | |
5 | 175 | |
- | - | |
0.0 | 1.6 | |
over 2 years ago | 7 months ago | |
Swift | Swift | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
exposure-vic
-
How can I achieve getting the old MKMarkerAnnotationView style still found in Maps?
Don’t know how up to date or relevant it can be but this is a repo I made during COVID with annotations and old maps mainly because it was iOS 14. https://github.com/markbattistella/exposure-vic/blob/main/exposure-vic/Views/UIKitComponents/UIMapView.swift
-
Annotation Clustering with SwiftUI & MapKit
hey /u/Oort_cloud69 i don’t know if this is helpful or not but a while ago I was trying to get it to work in SwiftUI. I’m still a beginner but this is what I was using https://github.com/markbattistella/exposure-vic don’t know if it’s helpful or not
- Local COVID exposure map
- COVID exposure map and list
Map
-
Publishing changes from within view updates is not allowed, this will cause undefined behavior. on Map with Annotations
Something similar to this which can help w performance a lot especially if you use clusters
-
Map clustering for new Map()
Eventually they will have to add it but i wouldnt hold my breath. You can still use swiftui views in uikit annotations and wrap mkmapview to look like swiftui similar to this
-
Any good tutorials on how to get directions in a map for swiftui?
To get directions, have a look at the official MapKit documentation for MKDirections. In each route of MKDirection.Response, you can find an overlay of type MKOverlay that you can use on MKMapView. Apples own Map implementation for SwiftUI is actually pretty limited, so you can either wrap MKMapView yourself or use the library that I built: https://github.com/pauljohanneskraft/Map
-
MKMapView wrapper for SwiftUI
You can find a first approach in this pull request I opened. It allows you to effectively call setNeedsDisplay on the MKOverlayRenderer in use by use of Combine publishers and gives you custom access to the draw and canDraw methods of MKOverlayRenderer directly - would love this to be a SwiftUI view instead, but I'm not sure how to draw into a cgcontext directly - maybe with a UIHostingController and then draw its view into the cgcontext? but then again, how would you map the SwiftUI view to individual MKMapPoints? not sure, if this would ever be a simple task.
I was quite frustrated with the limited functionality of MapKit's MKMapView SwiftUI wrapper - so I built my own with a lot more features and customization options and made it open source on GitHub.
What are some alternatives?
Cluster - Easy Map Annotation Clustering 📍
SwiftUI-Kit - A SwiftUI system components and interactions demo app
immuni-app-ios - Official repository for the iOS version of the immuni application
InteractiveMap - An Interactive Map Library for Swift and SwiftUI!
GoCycling - Intuitive cycling tracker app for iOS built with SwiftUI using Core Location, Core Data, MapKit, CloudKit and Combine. Features live route tracking, live metrics, storage of past cycling routes and statistics.
SunKit - SunKit is a Swift library which uses math and trigonometry to compute several information about the Sun.
TCCMapTileAnimation - iOS Project to display animated map tiles within MapKit
PreviewDevice - PreviewDevice - is a library with type-safe syntax sugar for preview device on SwiftUI. Preview for UIKit and Cocoa.
GaugeKit - GaugeKit is a free-to-use, open source Swift Package. It allows for easy creation of gauges not unlike the circular graphics used in many complications on the Apple Watch. ⌚️
SwiftCurrent - A library for managing complex workflows in Swift
SwiftTheming - A powerful lightweight theme 🎨 manager for SwiftUI