Skip to content

Instantly share code, notes, and snippets.

@dzuluaga
Last active August 28, 2023 21:35
Show Gist options
  • Save dzuluaga/042f7baa9b7c94ca703d46b17ca0909d to your computer and use it in GitHub Desktop.
Save dzuluaga/042f7baa9b7c94ca703d46b17ca0909d to your computer and use it in GitHub Desktop.
// Application Kotlin file to initialize a Map provider
package com.omh.android.maps.sample
import android.app.Application
import com.omh.android.maps.api.factories.OmhMapProvider
class DemoApp : Application() {
override fun onCreate() {
super.onCreate()
OmhMapProvider.Initiator()
.addGmsPath(BuildConfig.MAPS_GMS_PATH) // Google Map Provider
.addNonGmsPath(BuildConfig.MAPS_NON_GMS_PATH) // OpenStreeMap Provider
.initialize()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment