Put interactive, scalable world maps into your native Cocoa application with the open-source Mapbox macOS SDK.
- Mapbox-curated map styles and OpenStreetMap-basedvector tiles make it easy to get started.
- Customize every aspect of the map’s appearance in code or visually using Mapbox Studio.
- High-performance OpenGL rendering and multitouch gestures keep your users happy.
- A well-designed, fully documented API helps you stay productive.
- Develop across multiple platforms, including iOS, using the same styles and similar APIs.
The Mapbox macOS SDK is compatible with macOS 10.10.0 and above for Cocoa applications developed in Objective-C, Swift, Interface Builder, or AppleScript. For hybrid applications, consider Mapbox GL JS.
Installation
Mapbox Studio is a web application for creating custom maps. You can manage and create map styles, datasets, and tilesets. Related resources: Mapbox Studio; Mapbox Studio manual; Mapbox Studio. The Mapbox Studio style editor and dataset editor are not compatible with Internet Explorer. But you can access all other pages and features located from in the Mapbox Studio dashboard using Internet Explorer 10+. This includes, but is not limited to, your account information, statistics, Mapbox Studio Classic styles, and Mapbox Editor projects. Mapbox Studio is a suite of applications for designing custom map styles and managing your location data. Use Mapbox Studio to build and design a map to your exact specifications by uploading and editing your own data, utilizing Mapbox-provided tilesets, adding custom fonts. In the legacy Mapbox Studio Classic product, a classic style contained CartoCSS stylesheets, thin metadata (name, description, attribution, etc.), and a reference to a source.After you uploaded a classic style to Mapbox, it appeared on your Classic styles page. https://cleverrain746.weebly.com/camtasia-studio-mac-free-download.html. Creating a new map? Mapbox Studio is the modern alternative to Mapbox Studio Classic. If you're creating a new map today, you should.
There are three ways to install the Mapbox macOS SDK:
Manually
- Download the latest Mapbox macOS SDK release from GitHub – look for a release that begins with “macos-”. Sims 4 manual patch.
- Open the project editor, select your application target, then go to the General tab. Drag Mapbox.framework into the “Embedded Binaries” section. (Don’t drag it into the “Linked Frameworks and Libraries” section; Xcode will add it there automatically.) In the sheet that appears, make sure “Copy items if needed” is checked, then click Finish. Photoshop css serial number.
Via Carthage
The Mapbox macOS SDK is a binary-only dependency, so you’ll need Carthage 0.19 or above. In your Cartfile, specify this dependency (plus an optional version requirement):
After running
carthage update
, you’ll find Mapbox.framework in the Carthage/Build/ folder. Follow these instructions to integrate it into your project.Via CocoaPods
Create a Podfile with the following specification: Download from soundcloud 320 mac os.
where x.y Download interwrite workspace for mac. is the current version. In Terminal, run
pod install
.Usage
Mapbox vector tiles require a Mapbox account and API access token. In the project editor, select the application target, then go to the Info tab. Under the “Custom macOS Application Target Properties” section, set
MGLMapboxAccessToken
to your access token. You can obtain an access token from the Mapbox account page.Then, in a storyboard or XIB:
- Add a view to your view controller or window. (Drag Custom View from the Object library to the View Controller scene on the Interface Builder canvas. In a XIB, drag it instead to the window on the canvas.)
- In the Identity inspector, set the view’s custom class to
MGLMapView
. - MGLMapView needs to be layer-backed:
- You can make the window layer-backed by selecting the window and checking Full Size Content View in the Attributes inspector. This allows the map view to underlap the title bar and toolbar.
- Alternatively, if you don’t want the entire window to be layer-backed, you can make just the map view layer-backed by selecting it and checking its entry under the View Effects inspector’s Core Animation Layer section.
- Add a map feedback item to your Help menu. (Drag Menu Item from the Object library into Main Menu ‣ Help ‣ Menu.) Title it “Improve This Map” or similar, and connect it to the
giveFeedback:
action of First Responder.
Mapbox Free Maps
If you need to manipulate the map view programmatically:
- Switch to the Assistant Editor.
- Import the
Mapbox
module. - Connect the map view to a new outlet in your view controller class. (Control-drag from the map view in Interface Builder to a valid location in your view controller implementation.) The resulting outlet declaration should look something like this:
Full API documentation is included in this package, within the
documentation
https://renewmaui150.weebly.com/dayz-standalone-free-download-mac.html. folder, and online. The Mapbox iOS SDK’s API documentation and online examples apply to the Mapbox macOS SDK with few differences, mostly around unimplemented features like user location tracking.https://cleverrain746.weebly.com/easy-document-creator-download-mac.html. Mapbox does not officially support the macOS SDK to the same extent as the iOS SDK; however, bug reports and pull requests are certainly welcome.
Changes in version 0.5.1
This version of the Mapbox macOS SDK corresponds to version 3.6.4 of the Mapbox iOS SDK.
Mapbox Studio Styles
- Added an
MGLStyle.localizesLabels
property, off by default, that localizes any Mapbox Streets–sourced symbol layer into the user’s preferred language. (#9582) - Fixed an issue that caused
-[MGLShapeSource featuresMatchingPredicate:]
and-[MGLVectorSource featuresInSourceLayersWithIdentifiers:predicate:]
to always return an empty array. (#9784) MGLMapView
’sminimumZoomLevel
andmaximumZoomLevel
properties are now available in Interface Builder’s Attributes inspector. (#9729)- Added a Hungarian localization. (#9945)
- Deprecated
+[MGLStyle trafficDayStyleURL]
and+[MGLStyle trafficNightStyleURL]
with no replacement method. To use the Traffic Day and Traffic Night styles going forward, we recommend that you use the underlying URL. (#9918) - Fixed an issue where stale (but still valid) map data could be ignored in offline mode. (#10012)