Skip to content

Commit

Permalink
Small examples fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
persidskiy committed Oct 23, 2024
1 parent d94bc19 commit 34487f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final class CircleAnnotationExample: UIViewController, ExampleProtocol {
}
annotation.dragEndHandler = { annotation, _ in
annotation.circleRadius = 12
annotation.circleStrokeWidth = 0
annotation.circleStrokeWidth = 4
print("annotation drag ended: \(annotation.id)")
}
annotations.append(annotation)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ final class PointAnnotationClusteringExample: UIViewController, ExampleProtocol
func addPointAnnotations() {
// The image named `fire-station-11` is included in the app's Assets.xcassets bundle.
let image = UIImage(named: "fire-station-11")!
// Fire_Hydrants.geojson contains information about fire hydrants in Washington, D.C.
// It was downloaded on 6/10/21 from https://opendata.dc.gov/datasets/DCGIS::fire-hydrants/about
// Decode the GeoJSON into a feature collection on a background thread
_ = Bundle.main.url(forResource: "Fire_Hydrants", withExtension: "geojson")!
DispatchQueue.global(qos: .userInitiated).async {
// Fire_Hydrants.geojson contains information about fire hydrants in Washington, D.C.
// It was downloaded on 6/10/21 from https://opendata.dc.gov/datasets/DCGIS::fire-hydrants/about
// Decode the GeoJSON into a feature collection on a background thread
guard let featureCollection = try? self.decodeGeoJSON(from: "Fire_Hydrants") else {
return
}
Expand Down

0 comments on commit 34487f8

Please sign in to comment.