https://github.com/mappls-api/mappls-raster-catalogue-ios-distribution
Mappls Raster Catalogue Native for iOS distributed via the SPM (Swift Package Manager).
https://github.com/mappls-api/mappls-raster-catalogue-ios-distribution
Last synced: 3 months ago
JSON representation
Mappls Raster Catalogue Native for iOS distributed via the SPM (Swift Package Manager).
- Host: GitHub
- URL: https://github.com/mappls-api/mappls-raster-catalogue-ios-distribution
- Owner: mappls-api
- License: other
- Created: 2025-05-20T06:42:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-11T09:32:44.000Z (12 months ago)
- Last Synced: 2025-12-31T20:43:42.118Z (5 months ago)
- Language: Swift
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
[
](https://www.mapmyindia.com/api)
# MapplsRasterCatalogue Plugin for iOS
## [Introduction](#Introduction)
`MapplsRasterCatalogue` is a plugin over Mappls's `rasterCatalogue APIs`. RasterCatalogue APIs gives the users the power to display, style, and edit the data which is archived in Mappls's Database and overlay it on the user created maps.
- This is an easy & FREE to integrate DigitalSky Airspace zones layers widget by Mappls.
- The drone airspace map is an interactive map of India that demarcates the yellow and red zones across the country.
- The airspace map may be modified by authorised entities from time to time. Anyone planning to operate a drone should mandatorily check the latest airspace map for any changes in zone boundaries.
- We're helping ANY website or app developer to easily integrate this information, for the benefit of your users and visitors.
## [Installation](#Installation)
To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL. See [Adding Package Dependencies to Your App](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app).
### [Version History](#Version-History)
| Version | Dated | Description |
| :---- | :---- | :---- |
| `2.0.0`| 10 Jun 2025 | - Updated minimum iOS deployment target to 13.0
- Authentication and authorization mechanisms have been revised. |
| --- | --- | --- |
| `0.1.0` | 20 June 2022 | Initial version release. |
#### [Dependencies](#Dependencies)
This library depends upon several Mappls's own libraries. All dependent libraries will be automatically installed using CocoaPods.
Below are list of dependencies which are required to run this SDK:
- [MapplsAPICore](https://github.com/mappls-api/mappls-ios-sdk/docs/v1.0.0/MapplsAPICore.md)
- [MapplsAPIKit](https://github.com/mappls-api/mappls-ios-sdk/docs/v1.0.0/MapplsAPIKit.md)
- [MapplsMaps](https://github.com/mappls-api/mappls-ios-sdk/docs/v1.0.0/MapplsMap.md)
## [Authorization](#Authorization)
### [MapplsAPICore](#MapplsAPICore)
It is required to set MAPPLS's keys to use any MAPPL's SDK. Please see [here](MapplsAPICore.md) to achieve this.
## [Precap](#Precap)
### [RasterCatalogue Layer Types](#Geoanalytics-Layer-Types)
An enum `MapplsRasterCatalogueLayerType` can be used to get different types of layers. Below are different types which are available:
1. `MapplsRasterCatalogueLayerTypeInternationalBoundary25KM`
2. `MapplsRasterCatalogueLayerTypeAirport8To12KMYellow`
3. `MapplsRasterCatalogueLayerTypeAirport5To8KM`
4. `MapplsRasterCatalogueLayerTypeAirport0To5KM`
**Now that you’re all caught up with the features, let's get down right to them and look at how you can integrate our RasterCatalogue plugin to add data on your map in few simple steps.**
## [Initialization MapplsRasterCatalogue Plugin ](#Initialization-MapplsGeoanalyticsPlugin)
```swift
var rasterCataloguePlugin : MapplsRasterCataloguePlugin = MapplsRasterCataloguePlugin(mapView: mapView)
```
## [Use of RasterCatalogue API](#Use-of-RasterCatalogue-API)
Use instance of `MapplsRasterCataloguePlugin` to show response of RasterCatalogue API as Map Layers.
**For infomation about `RasterCatalogue API` go [here](https://about.mappls.com/api/advanced-maps/geoanalytics-web-js/geo-analytics-mapmyindia-js).**
#### [MapplsRasterCatalogueLayerOptions](#MapplsGeoanalyticsLayerRequest)
Below are parameters of `MapplsRasterCatalogueLayerOptions` class.
- **layerType** (mandatory): It is an enum of type `MapplsRasterCatalogueLayerType`.
- **crossOrigin** (optional): It is of type `String`. For more info see [here](#MapplsGeoanalyticsGeobound).
- **transparent** (optional): It is type `Bool`. its default value is `true`.
- **zIndex** (optional): It is of type `BOOL`. its default value is 0
### Step 2 - Adding RasterCatalogue layer on Map
A function `addRasterCatalogueLayer` available in `MapplsRasterCataloguePlugin` which accepts request of type `MapplsRasterCatalogueLayerOptions`.
Plugin internally consume that request to get response and plot layer on Map accordingly.
``` swift
let request = MapplsRasterCatalogueLayerOptions(layerType: .airport5To8KM)
self.rasterCataloguePlugin.addRasterCatalogueLayer(request)
```
### Other Methods Available:
**1. Remove RasterCatalogue Layer**
`removeRasterCatalogueLayer` is a function which accepts request of type `MapplsRasterCatalogueLayerOptions` to remove related layer from map.
``` swift
let request = MapplsRasterCatalogueLayerOptions(layerType: .airport5To8KM)
geoanalyticsPlugin.removeRasterCatalogueLayer(layerRequestState))
```
## Our many happy customers:

For any queries and support, please contact:
[
](https://about.mappls.com/api/)
Email us at [apisupport@mappls.com](mailto:apisupport@mappls.com)

[Support](https://about.mappls.com/contact/)
Need support? contact us!
[
](https://stackoverflow.com/questions/tagged/mappls-api)[](https://about.mappls.com/blog/)[](https://github.com/mappls-api)[
](https://www.npmjs.com/org/mapmyindia)
[
](https://www.facebook.com/Mapplsofficial)[](https://twitter.com/mappls)[](https://www.linkedin.com/company/mappls/)[](https://www.youtube.com/channel/UCAWvWsh-dZLLeUU7_J9HiOA)
@ Copyright 2020 CE Info Systems Pvt. Ltd. All Rights Reserved.
Terms & Conditions | Privacy Policy | Supplier Sustainability Policy | Health & Safety Policy | Environmental Policy & CSR Report
Customer Care: +91-9999333223