Skip to main content

Raster Catalogue

Introduction

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.

Add the dependency

Add below dependency in your app-level build.gradle

implementation 'com.mappls.sdk:raster-catalogue-plugin:0.0.1'

Add your API keys to the SDK

Add your API keys to the SDK (in your application's onCreate() or before using map)

Java

MapplsAccountManager.getInstance().setRestAPIKey(getRestAPIKey());      
MapplsAccountManager.getInstance().setMapSDKKey(getMapSDKKey());
MapplsAccountManager.getInstance().setAtlasClientId(getAtlasClientId());
MapplsAccountManager.getInstance().setAtlasClientSecret(getAtlasClientSecret());

Kotlin

MapplsAccountManager.getInstance().restAPIKey = getRestAPIKey()     
MapplsAccountManager.getInstance().mapSDKKey = getMapSDKKey()
MapplsAccountManager.getInstance().atlasClientId = getAtlasClientId()
MapplsAccountManager.getInstance().atlasClientSecret = getAtlasClientSecret()

Available Raster Catalogue Layer

  1. MapplsRasterCatalogueType.INTERNATIONAL_BOUNDARY_25_KM
  2. MapplsRasterCatalogueType.AIRPORT_8_TO_12_KM_YELLOW
  3. MapplsRasterCatalogueType.AIRPORT_5_TO_8_KM
  4. MapplsRasterCatalogueType.AIRPORT_0_T0_5_KM

Initialise the plugin

Java

MapplsRasterCataloguePlugin mapplsRasterCataloguePlugin = new MapplsRasterCataloguePlugin(mapView, mapplsMap);

Kotlin

val mapplsRasterCataloguePlugin = MapplsRasterCataloguePlugin(mapView, mapplsMap)

Add Raster Catalogue layer

Java

mapplsRasterCataloguePlugin.addRasterCatalogueLayer(MapplsRasterCatalogueType.AIRPORT_0_T0_5_KM);

Kotlin

mapplsRasterCataloguePlugin?.addRasterCatalogueLayer(MapplsRasterCatalogueType.AIRPORT_0_T0_5_KM)

Remove Raster Catalogue Layer

Java

mapplsRasterCataloguePlugin.removeRasterCatalogueLayer(MapplsRasterCatalogueType.AIRPORT_0_T0_5_KM);

Kotlin

mapplsRasterCataloguePlugin?.removeRasterCatalogueLayer(MapplsRasterCatalogueType.AIRPORT_0_T0_5_KM)