expo-gaode-map 2.0.0-alpha.4 → 2.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -505,7 +505,7 @@ class MarkerView(context: Context, appContext: AppContext) : ExpoView(context, a
|
|
|
505
505
|
|
|
506
506
|
fun handleMarkerClick(marker: Marker): Boolean {
|
|
507
507
|
markerViewMap[marker]?.let { view ->
|
|
508
|
-
view.onMarkerPress(mapOf(
|
|
508
|
+
view.onMarkerPress?.invoke(mapOf(
|
|
509
509
|
"latitude" to marker.position.latitude,
|
|
510
510
|
"longitude" to marker.position.longitude
|
|
511
511
|
))
|
|
@@ -520,21 +520,21 @@ class MarkerView(context: Context, appContext: AppContext) : ExpoView(context, a
|
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
fun handleMarkerDragStart(marker: Marker) {
|
|
523
|
-
markerViewMap[marker]?.onMarkerDragStart(mapOf(
|
|
523
|
+
markerViewMap[marker]?.onMarkerDragStart?.invoke(mapOf(
|
|
524
524
|
"latitude" to marker.position.latitude,
|
|
525
525
|
"longitude" to marker.position.longitude
|
|
526
526
|
))
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
fun handleMarkerDrag(marker: Marker) {
|
|
530
|
-
markerViewMap[marker]?.onMarkerDrag(mapOf(
|
|
530
|
+
markerViewMap[marker]?.onMarkerDrag?.invoke(mapOf(
|
|
531
531
|
"latitude" to marker.position.latitude,
|
|
532
532
|
"longitude" to marker.position.longitude
|
|
533
533
|
))
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
fun handleMarkerDragEnd(marker: Marker) {
|
|
537
|
-
markerViewMap[marker]?.onMarkerDragEnd(mapOf(
|
|
537
|
+
markerViewMap[marker]?.onMarkerDragEnd?.invoke(mapOf(
|
|
538
538
|
"latitude" to marker.position.latitude,
|
|
539
539
|
"longitude" to marker.position.longitude
|
|
540
540
|
))
|