Skip to content

About

No description, website, or topics provided.

Resources

Stars

29 stars

Watchers

1 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

iOS17-MapKit-Sampler

This is a collection of MapKit samples for SwiftUI available for iOS 17.0 and later.

Simulator Screen Recording - iPhone 15 Pro - 2024-04-01 at 20 12 23

How to build

Can be built with Xcode 15.0 or later If you want to try UserAnnotation, please allow location permissions

Simulator Screen Recording - iPhone 15 Pro - 2024-04-01 at 20 06 35

Contents

  1. MapStyle Sample

With mapStyle, you can easily display everything from flat images to realistic 3D representations.

Simulator Screen Recording - iPhone 15 Pro - 2024-04-01 at 21 05 50

  1. Annotation Sample

Sample that can display customized annotations at any position

  1. MapCircle Sample

Sample of displaying an arbitrary position on a map with a circle over it

  1. MapPolygon Sample

Sample of displaying an arbitrary position on a map covered with a polygon

  1. MapPolyline Sample

Sample of displaying a linear line over an arbitrary location on a map
Toggle "View with routes" to display various routes.

simple routes
  1. Marker Sample

Sample displaying a customized marker at an arbitrary location on a map

  1. UserAnnotation Sample

Sample to display your current position
Tapping the MapUserLocationButton displays your location, but this only works in Preview and on the actual device.

画面収録 2024-04-01 21 29 28

  1. MapControls Sample

Sample to display a multifunctional button easily with mapControls

  1. LookAroundPreview Sample

Sample to display any location in LookAroundPreview
You can toggle between viewing only the preview and viewing from the map.

Simulator Screen Recording - iPhone 15 Pro - 2024-04-01 at 21 41 35

  1. MapFeature Sample

Sample of large text displayed when tapping the notation on the map using mapFeatureSelectionContent

Simulator Screen Recording - iPhone 15 Pro - 2024-04-01 at 21 46 50

  1. MapCamera Sample

Sample of MapCamera and userLocation to instantly display the current location
To display the current location, it only works in Preview or on the actual device.
The simulator displays the fallback position.

  1. MapReader Sample

Sample of tapping on the map to get the longitude and latitude of the tap

Simulator Screen Recording - iPhone 15 Pro - 2024-04-01 at 21 54 44

  1. LocalSearch Sample

In this sample, enter the characters you want to search in the TextField and tap the "magnifyingglass" to display the search result marker on the map. Tap the marker to display detailed information in the safe area (bottom).

Simulator Screen Recording - iPhone 15 Pro - 2024-04-04 at 07 58 20

About

No description, website, or topics provided.

Resources

Stars

29 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages