Reference/Sample
Samplestatelesssample

Mappls Vector Map Android SDK JetPack Compose

mappls-android-compose-demo

A Mappls sample for maps, search places, routes navigation, gis analytics, widgets deep links, capture feedback across Android.

What this surface enables

A Mappls sample for maps, search places, routes navigation, gis analytics, widgets deep links, capture feedback across Android.

Why this source is classified stateless

No durable provider record or application workflow contract was established from the source identity or bounded document evidence; view, camera, callback, and authentication sessions alone do not make a source stateful.

Authority: Conservative Default · No durable-state signal promoted from incidental vocabulary
Platforms

Android

Product areas

MapsSearch PlacesRoutes NavigationGis AnalyticsWidgets Deep LinksCapture Feedback

Languages found

GroovyTextXMLKotlin

Authentication signals

Oauth2Api Key

Prepare the integration

  1. An Android project with a supported Gradle and Kotlin or Java toolchain
  2. OAuth client credentials issued for the intended Mappls project
  3. A Mappls project key restricted to the intended app, domain, or backend
Production guardrailsPin package versions and record the source fingerprint.Keep server credentials out of client binaries and logs.Test failures, timeouts, quota limits, upgrades, and rollback.Validate legacy examples against current authentication contracts.

Setup and usage examples

These examples were extracted from the canonical public source document and sanitized for credential-like values. Check the source branch and package version before copying into a production application.

mappls-android-compose-demo examples
allprojects {
repositories {
maven {
  url 'https://maven.mappls.com/repository/mappls/'
}
}
}

Topics documented by the source

01Mappls Vector Map Android SDK JetPack Compose

Easy To Integrate Maps & Location APIs & SDKs For Web & Mobile Applications Powered with India’s most comprehensive and robust mapping functionalities. Now Available for Srilanka, Nepal, Bhutan and Bangladesh

1. You can get your api key to be used in this document here: https://www.mapmyindia.com/api/signup

2. The sample code is provided to help you understand the basic functionality of MapmyIndia maps & REST APIs working on Android native development platform.

3.Explore through 200+ countries & territories with Global Search, Routing and Mapping APIs & SDKs by Mappls.

02Getting Started

Mappls Maps SDK for Android lets you easily add Mappls Maps and web services to your own Android application. The SDK for Android supports API 21+. You can have a look at the map and features you will get in your own app by using the Mappls Maps SDK for Android.

Through customized tiles, you can add different map layers to your application and add bunch of controls and gestures to enhance map usability thus creating potent map based solutions for your customers. The SDK handles downloading of map tiles and their display along with a bunch of controls and native gestures.

03Setup your project

Follow these steps to add the SDK to your project – - Create a new project in Android Studio For older Build versions (i.e, Before gradle v7.0.0) - Add Mappls repository in your project level build.gradle

For Newer Build Versions (i.e, After gradle v7.0.0)

• Add MapmyIndia repository in your settings.gradle

• Add below dependency in your app-level build.gradle

• Add these permissions in your project

04Add Java 8 Support to the project

add following lines in your app module’s build.gradle

05Add your API keys to the SDK

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

You cannot use the Mappls Map Mobile SDK without these function calls. You will find your keys in your API Dashboard.

06Add a Mappls Map to your application

To make Jetpack compose Support

onSuccess callback provides MapView and MapplsMap which is used to perform different operations.

07Add Marker

For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!

[](https://about.mappls.com/blog/)[](https://github.com/Mappls-api)

[](https://twitter.com/mappls)[](https://www.linkedin.com/company/mappls/)[](https://www.youtube.com/channel/UCAWvWsh-dZLLeUU7J9HiOA)

@ Copyright 2022 CE Info Systems Ltd. All Rights Reserved.

Service references found

URLs are sanitized during ingestion and may include documentation or legacy hosts. Use them to trace the source, not as a substitute for the current API contract.

https://www.mapmyindia.com/apihttps://www.mapmyindia.com/api/signup](https://www.mapmyindia.com/api/signuphttps://github.com/MapmyIndia/mapmyindia-rest-api/blob/master/docs/countryISO.mdhttps://maven.mappls.com/repository/mappls/https://about.mappls.com/api/https://about.mappls.com/contact/https://stackoverflow.com/questions/tagged/mappls-api)[![](https://www.mapmyindia.com/api/img/icons/blog.png)](https://about.mappls.com/blog/)[![](https://www.mapmyindia.com/api/img/icons/gethub.png)](https://github.com/Mappls-api)[https://www.npmjs.com/org/mapmyindiahttps://www.facebook.com/Mapplsofficial)[![](https://www.mapmyindia.com/june-newsletter/icon2.png)](https://twitter.com/mappls)[![](https://www.mapmyindia.com/newsletter/2017/aug/llinkedin.png)](https://www.linkedin.com/company/mappls/)[![](https://www.mapmyindia.com/june-newsletter/icon3.png)](https://www.youtube.com/channel/UCAWvWsh-dZLLeUU7_J9HiOAhttps://about.mappls.com/api/terms-&-conditionshttps://about.mappls.com/about/privacy-policyhttps://about.mappls.com/pdf/mapmyIndia-sustainability-policy-healt-labour-rules-supplir-sustainability.pdfhttps://about.mappls.com/pdf/Health-Safety-Management.pdfhttps://about.mappls.com/pdf/Environment-Sustainability-Policy-CSR-Report.pdf