This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun MapboxMap.resolveSymbolId(location: LatLng) = resolveAnnotationId(location, SymbolManager.ID_GEOJSON_LAYER) | |
fun MapboxMap.resolveSymbolId(screenLocation: PointF) = resolveAnnotationId(screenLocation, SymbolManager.ID_GEOJSON_LAYER) | |
/** | |
* Check if an annotation is located at a given coordinate. | |
* | |
* @param location click location in real world coordinates | |
* | |
* @return annotation ID if an annotation exists, null otherwise |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.exmample.utils; | |
import android.app.Dialog; | |
import android.content.Context; | |
import android.graphics.Color; | |
import android.graphics.drawable.ColorDrawable; | |
import android.view.Gravity; | |
import android.view.Window; | |
import android.view.WindowManager.LayoutParams; |