{"id":17858488,"url":"https://github.com/map-ir/mapir-ios-maps-sdk","last_synced_at":"2025-03-20T16:32:38.442Z","repository":{"id":62447592,"uuid":"228063486","full_name":"map-ir/mapir-ios-maps-sdk","owner":"map-ir","description":"MapirMapKit is Map.ir Maps SDK for iOS based on Mapbox Maps SDK for iOS","archived":false,"fork":false,"pushed_at":"2022-09-07T10:15:48.000Z","size":252,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T00:36:20.589Z","etag":null,"topics":["apple","ios","mapbox","maps","objective-c","sdk","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/map-ir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-14T17:41:34.000Z","updated_at":"2023-03-07T18:12:16.000Z","dependencies_parsed_at":"2022-11-01T23:02:09.088Z","dependency_job_id":null,"html_url":"https://github.com/map-ir/mapir-ios-maps-sdk","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-maps-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-maps-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-maps-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-maps-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/map-ir","download_url":"https://codeload.github.com/map-ir/mapir-ios-maps-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244077837,"owners_count":20394353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","ios","mapbox","maps","objective-c","sdk","swift"],"created_at":"2024-10-28T05:07:27.722Z","updated_at":"2025-03-20T16:32:38.061Z","avatar_url":"https://github.com/map-ir.png","language":"Swift","readme":"# Map.ir Map Kit\n\nMap.ir Map Kit is an interactive map based on Mapbox framework, providing Map.ir tiles.\n\n## Features\n- Supports Swift and Objective-C\n- Customizable map and gestures.\n- Support for Interface builder.\n- **All with Map.ir vector tiles.**\n\n\n## Example\n\nTo see the example application, first clone the project using `git clone https://github.com/map-ir/mapir-ios-maps-sdk` in terminal.\nOpen `SampleApp/SampleApp.xcodeproj`. Build and run `SampleApp` target.\n\nYou need to put your Map.ir API key in a file at your home directory named `.mapir` or just enter it in SampleApp's `AppDelegate.swift` in `application(_:didFinishLaunchingWithOptions:)` using the following code:\n\n```swift\nMapirAccountManager.shared.set(apiKey: \"eyJ0eXAiO...\")\n``` \n\n## Installation\n\n### Swift Package Manager\n\n\u003e **Note**\n\u003e Since Map.ir maps SDK is based on Mapbox's SDK, you need to follow [Mapbox's Instruction](https://docs.mapbox.com/ios/maps/guides/install/#configure-credentials) to be able to install the SDKs. \n\nMap.ir Map Kit is available through [Swift Package Manager](https://www.swift.org/package-manager/). To install\nit, simply add the following line to your dependencies of your Package.swift file:\n\n```swift\n.package(name: \"MapirMapKit\", url: \"https://github.com/map-ir/mapir-ios-maps-sdk.git\", from: \"2.0.0\"),\n```\n\nOr, if you are using Xcode, Click on \"File \u003e Add Packages\" enter the following URL in the search box. \nthen set the version to `from: 4.0.0`. \n\n```\nhttps://github.com/map-ir/mapir-ios-maps-sdk.git\n``` \n\n## Usage\nThis SDK is compatible with both Swift and Objective-C programming languages, using iOS 9.0 or newer. \n\nfirst import Map.ir MapKit.\n\n```swift\nimport MapirMapKit\n```\n\nThen use initializers for of `MapirMapView` to create an instance of it. `MapirMapView` is the subclass of [`MapView`](https://docs.mapbox.com/ios/maps/api/10.7.0/Classes/MapView.html#/MapView) with Map.ir tiles.\n\n```swift\nstruct MapirAttributionURLOpener: AttributionURLOpener {\n    func openAttributionURL(_ url: URL) {}\n}\n\nclass ViewController: UIViewController {\n    var mapView: MapirMapView!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        mapView = MapirMapView(frame: view.bounds, mapInitOptions: .mapirCompatible(), urlOpener: MapirAttributionURLOpener())\n        mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]\n        self.view.addSubview(mapView)\n    }\n    \n    ...\n}\n```\n\n## Contributing\n\nContributions are very welcome. 🙌\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmap-ir%2Fmapir-ios-maps-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmap-ir%2Fmapir-ios-maps-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmap-ir%2Fmapir-ios-maps-sdk/lists"}