android-mapview

Google map Background color for Map type GoogleMap.MAP_TYPE_NONE

╄→尐↘猪︶ㄣ 提交于 2020-08-09 09:11:29
问题 I have used Ground overlay of my floorplan added to Google Map. It loads up perfectly. Code is as shown below. override fun onMapReady(map: GoogleMap) { mMap = map; mMap.setOnGroundOverlayClickListener(this); mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(DEFAULT_LAT_LNG, 1F)); mMap.setMapType(GoogleMap.MAP_TYPE_NONE); mGroundOverlay = mMap.addGroundOverlay(GroundOverlayOptions() .image(BitmapDescriptorFactory.fromBitmap(bitmap)).anchor(0F, 1F) .position(DEFAULT_LAT_LNG, floorPlanWidth

Hide markers info window in android google maps API v2

北慕城南 提交于 2020-07-04 10:16:47
问题 Currently I was able to view all my markers in Google maps using Android Google maps API v2. Adding my marker in map: mapView.addMarker (new MarkerOptions() .position(aUsersLocation). icon(BitmapDescriptorFactory.fromBitmap(aUserImage)) .snippet(My_VALUE_1) .title(My_VALUE_2) .hideInfoWindow(); I have several markers and assigned few values (My_VALUE_1 and My_VALUE_2) to each marker's snippet and title. When user clicks a marker, I need these unique value and I will receive these values in

Hide markers info window in android google maps API v2

时光毁灭记忆、已成空白 提交于 2020-07-04 10:14:07
问题 Currently I was able to view all my markers in Google maps using Android Google maps API v2. Adding my marker in map: mapView.addMarker (new MarkerOptions() .position(aUsersLocation). icon(BitmapDescriptorFactory.fromBitmap(aUserImage)) .snippet(My_VALUE_1) .title(My_VALUE_2) .hideInfoWindow(); I have several markers and assigned few values (My_VALUE_1 and My_VALUE_2) to each marker's snippet and title. When user clicks a marker, I need these unique value and I will receive these values in

Adding Google Maps to a RecyclerView

自古美人都是妖i 提交于 2020-07-02 10:50:34
问题 I have added the map view inside the RecyclerView alongside other types of list items but now ... how and where do I initialize the map, where do I listen for onMapReady so that I can place a marker afterwards, and how do I handle the recycling of the item ? Any ideas what the best practice is in this situation ? 回答1: There are tow possibliy do this thing, one is Google Static Maps API using, which will give you the snapshot of the map Another is, you can use com.google.android.gms.maps

Android : MapView in a CollapsingToolbarLayout

时光毁灭记忆、已成空白 提交于 2020-06-14 06:46:34
问题 I'm currently trying to put a Map View (or a fragment containing the map)inside a CollapsingToolbarLayout . I would want to have the parallax effect on it when the RecyclerView scrolls. Unfortunately, it isn't showing up at all! Not even the grey grid! The collapsing animation is working though. I've search everywhere, but all I was able to find is about ImageView and no other component. So here are my questions : Is it even possible to put anything else than an ImageView in a

Plot Multiple Marker on Map-view From Firestore Cloud Database?

白昼怎懂夜的黑 提交于 2020-03-04 18:39:30
问题 I had Stored longitude & latitude in Firestore Collection and using Marker I Showed it On Map. but only one marker is displayed on a map. I want to show multiple markers on a map using stored longitude & latitude in Firestore Collection. Here is my java code package part.time.job.v2; import android.os.Bundle; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.fragment

Plot Multiple Marker on Map-view From Firestore Cloud Database?

杀马特。学长 韩版系。学妹 提交于 2020-03-04 18:38:36
问题 I had Stored longitude & latitude in Firestore Collection and using Marker I Showed it On Map. but only one marker is displayed on a map. I want to show multiple markers on a map using stored longitude & latitude in Firestore Collection. Here is my java code package part.time.job.v2; import android.os.Bundle; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.fragment

Heatmap - Generating Simple 'HeatPoint' Google Maps Android

梦想的初衷 提交于 2020-02-28 09:55:14
问题 Android SDK 2.3.3 Google Maps V2 Currently I'm drawing circles overlays and adding them to a MapView. The size is dictated by a certain value and I'm looking to determine the RadialGradient color of the circle by something else. circle.setShader(new RadialGradient(pt.x, pt.y, 40, Color.argb(150, 252, 5, 5), Color.argb(60, 234, 231, 0), TileMode.MIRROR)); canvas.drawCircle(pt.x, pt.y, radius, circle); It works, however I'd prefer the edges to look more similar to the classic heatpoint map.

Custom MKAnnotationView Callout [duplicate]

纵然是瞬间 提交于 2020-02-11 08:24:02
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: Custom MKPinAnnotation callout bubble similar to default callout bubble How to customize the callout bubble for MKAnnotationView? Does anyone know, or have code that shows, how to create a custom MKAnnotationView Callout? I mean the actual text bubble and not the pin. Thanks in advance. 回答1: you cannot make a custom MKAnnotationView, you can only custom the callout views left and right, it's just a view, so you

Custom MKAnnotationView Callout [duplicate]

情到浓时终转凉″ 提交于 2020-02-11 08:23:40
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: Custom MKPinAnnotation callout bubble similar to default callout bubble How to customize the callout bubble for MKAnnotationView? Does anyone know, or have code that shows, how to create a custom MKAnnotationView Callout? I mean the actual text bubble and not the pin. Thanks in advance. 回答1: you cannot make a custom MKAnnotationView, you can only custom the callout views left and right, it's just a view, so you