Swiftpack.co - mapbox/mapbox-maps-ios as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mapbox.
mapbox/mapbox-maps-ios v10.7.0
Interactive, thoroughly customizable maps for iOS powered by vector tiles and Metal
⭐️ 222
🕓 1 week ago
.package(url: "https://github.com/mapbox/mapbox-maps-ios.git", from: "v10.7.0")


CLA assistant

The Mapbox Maps SDK for iOS is a public library for displaying interactive, thoroughly customizable maps in native iOS. It takes map styles that conform to the Mapbox Style Specification, applies them to vector tiles that conform to the Mapbox Vector Tile Specification, and renders them using Metal.

Getting Started

This README is intended for developers who are interested in contributing to the Mapbox Maps SDK for iOS. Please visit https://docs.mapbox.com/ios/maps/guides/ for general information and instructions on using the Maps SDK in your iOS application.

Examples App

The Examples app shows how to use many of the features in the Maps SDK. See the Examples README for more information.


If you are interested in contributing to the Maps SDK, please see the DEVELOPING.md file for information on setting up, running and building the SDK.

Reporting issues / Need help?

Report a bug :beetle:

Please use our bug template to report any issues.

Request a new feature or enhancement :green_apple:

Please use our feature template to request new features or enhancements.

Other questions

Can't find the answer you're looking for? Contact support

Historical Note

This repository is a continuation of the Mapbox Maps SDK for iOS available at mapbox/mapbox-gl-native-ios.


Stars: 222
Last commit: 1 hour ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1 week ago

Breaking changes ⚠️

  • Remove deprecated animationDuration parameter in FollowPuckViewportStateOptions initializer.(#1390)
  • Remove experimental ModelLayer APIs. (1486)

Features ✨ and improvements 🏁

  • We added fast ambient occlusion support for fill extrusion layer to make lighting even more realistic (1410)
  • textLineHeight is a data-driven property now! And it has been moved to PointAnnotation. (1410)
  • Viewport API promoted to stable. (#1392)
  • New QueryRenderedFeatures methods add the ability to cancel the query. (#1378)
  • Map events now can carry type-safe event data types. (#1362)
  • Moving a Layer should be a bit faster. (#1367)
  • We introduced an API to get puck's location updates. (#1365)
  • New example showcases how to draw a route with vanishing effect with the new puck location update API. (#1328)
  • Atmosphere properties gain transition support. (#1401)
  • To prevent accidental rotation when pinching the map, we added an intelligent threshold to the rotation gesture. (#1429)
  • Simultaneous pinch and rotate can be disabled with GestureOptions.simultaneousRotateAndPinchZoomEnabled. GestureOptions.pinchRotateEnabled got renamed to GestureOptions.rotateEnabled. (1429)
  • Now it is possible to create tileset descriptor from a tilesets list. (#1431)

Bug fixes 🐞

  • Fix Atmosphere API coding keys so engine can read the new values properly. (#1401)
  • Pause map rendering when earlier to address rendering artifacts when coming from background. (#1402)
  • Fix view annotation losing its feature association after update. (#1446)


  • Update to MapboxCommon to 22.1.0 (https://github.com/mapbox/mapbox-maps-ios/pull/1492).
  • Update to MapboxCoreMaps 10.7.0 (https://github.com/mapbox/mapbox-maps-ios/pull/1492):
    • Changelog
      • Features ✨ and improvements 🏁
        • cameraForLatLngs now allows to ignore edges of framing box dynamically depending on the position of the principal point of the camera
        • Synchronize volatile data (like traffic tiles) in multi-map environment. Decrease network traffic.
        • Make uploading of large graphics data asynchronous to improve rendering speed in particular on zooming in/out
        • Reuse single index buffer in symbol layer rendering
        • Use shared index buffers per tile to reduce the time spent in the upload pass
        • Reduce geometry on globe tile to increase rendering performance.
        • Improve rendering performance with deleting layer render data on a worker thread.
        • The deprecated maps::Settings API is using the same non-persistent storage as the SettingsService API from Common SDK so that all settings consolidated in a single place.
        • Support using 'line-trim-offset' property with pure line color.
        • Render cache and Terrain can now have mipmapping enabled to reduce aliasing.
        • Fast ambient occlusion support for fill extrusion layer.
        • Refactor view annotation implementation to align map and annotation movement better when camera changes.
        • Add API to create tileset descriptor from a tilesets list.
      • Bug fixes 🐞
        • Fixes a bug when map aligned symbol layers are placed on top of other layers if draping is active
        • Fix tile flickering with Globe on rapid zooming in/out
        • Fixed cameraForCoordinateBounds method returning different values for the same input
        • Fix setting 'exaggeration-transition' property via 'setStyleTerrain' API
        • Fix SDK fragment format in turnstile useragent
        • Fix view annotation occlusion issue when Terrain enabled
        • Fix symbol flickering issue when 'textAllowOverlap' or 'iconAllowOverlap' is true
        • Fixes rendering issues with the globe on unsupported hardware by falling back to mercator projection
        • Fixed feature states not being applied on new tiles when zoom doesn't change
        • Disable MapBuffer OpenGL extension on PowerVR SGX 544MP GPUs to fix incorrect usage of unimplemented methods
        • Fix incorrect image source rendering with terrain enabled.
        • Don't use timestamps for presenting Metal drawable, as it could introduce rendering delay.
        • Fix possible crash bug in image processing.
        • Fix some cpu-updated symbols being invisible in globe view.
        • Add support for terrain transition properties.
        • Fix zoom constraining issue when the input 'maxZoom' is smaller than the current 'minZoom' value.
        • Fix crash on calling Query Rendered Features API from renderer thread before initialising the renderer.
        • Fix tile pre-fetching for the globe map projection.
        • Relayout tiles after recovering from Metal rendering errors.
        • Fix a bug where changing size of the map would lead map center getting changed as well.

Dependency requirements:

  • Minimum compatible version of Xcode: 13.0.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics