android-maps

Google Maps is showing a blank map

依然范特西╮ 提交于 2020-08-06 07:32:41
问题 I am currently stuck with this problem: Google Maps seems not to be loading at all. Please see the image below: This is really driving me crazy. I already have done the following: Added my package name + SHA1 (debug keystore) + SHA1 (release keystore) to Google Developer's console. Maps SDK for Android is enabled. The API key has Android app restriction Added google-services.json to my app from Firebase console Added necessary permissions: Added API Key to the Manifest file - from Google

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

Reading OSM Map (or other format) files to determine shortest distance from coordinate to path

南楼画角 提交于 2020-04-19 11:43:43
问题 My App uses openstreetmap files to show waypoint (or coordinates) on a map. Based on an Openstreet map file: how can I determine the shortest distance from a GPS coordinate to the (walking) path. Can I read an OSM (map) or .osm file ... to access the paths? 回答1: There are some misconceptions. First, the OSM file is not the map file. The OSM file can be used to create a format to make map rendering fast e.g. mapsforge format does this. With e.g. GraphHopper you import the OSM file like .pbf or

Reading OSM Map (or other format) files to determine shortest distance from coordinate to path

…衆ロ難τιáo~ 提交于 2020-04-19 11:41:28
问题 My App uses openstreetmap files to show waypoint (or coordinates) on a map. Based on an Openstreet map file: how can I determine the shortest distance from a GPS coordinate to the (walking) path. Can I read an OSM (map) or .osm file ... to access the paths? 回答1: There are some misconceptions. First, the OSM file is not the map file. The OSM file can be used to create a format to make map rendering fast e.g. mapsforge format does this. With e.g. GraphHopper you import the OSM file like .pbf or

Reading OSM Map (or other format) files to determine shortest distance from coordinate to path

為{幸葍}努か 提交于 2020-04-19 11:41:23
问题 My App uses openstreetmap files to show waypoint (or coordinates) on a map. Based on an Openstreet map file: how can I determine the shortest distance from a GPS coordinate to the (walking) path. Can I read an OSM (map) or .osm file ... to access the paths? 回答1: There are some misconceptions. First, the OSM file is not the map file. The OSM file can be used to create a format to make map rendering fast e.g. mapsforge format does this. With e.g. GraphHopper you import the OSM file like .pbf or

Display Maps with multiple locations

 ̄綄美尐妖づ 提交于 2020-03-05 05:27:21
问题 I am developing a bank applications in android, where i need to display the locations of all its branches in letters say A, B, C..., N in google maps. These locations are dynamic and need to set them on the fly when the server retrieves the locations. Please put your pointers on how to achieve the multiple locations display on google maps. 回答1: Pointers: 1. First integrate a map in you application, you can use this blog post guide to do so: Google Maps API V2 Guide 2. Next you will need to

Map version 2 in Android 2.3

对着背影说爱祢 提交于 2020-01-24 20:05:21
问题 I have developed simple Map application using google map version2. It is working fine on Android 4.0 supported devices but not run in Android 2.3(API 10). Now I need to support the same application from API level 10. How to convert the application support from API level 10? My application is supported the " google-play-services_lib ". my code sample. main.xml: <fragment android:id="@+id/map" android:name="com.google.android.gms.maps.MapFragment" android:layout_width="match_parent" android

Get Latitude and Longitude from SQLite database for use in Android MapOverlay

眉间皱痕 提交于 2020-01-11 06:39:05
问题 If I store the Latitude and Longitude of a bunch of locations in a SQLite Database, how would I retrieve these values and place them each in an OverlayItem class for use in Google's Map code? Database name: database Table name: place Fields in place Table: id title description latitude longitude How do I get the latitude and longitude data of each location and add it to an ArrayList itemOverlay? Do you have any ideas or an example? Thanks you so much 回答1: You would want to do a query like

Android Google maps crash when offline

做~自己de王妃 提交于 2020-01-07 07:43:18
问题 I have a application that is about finished. When the phone is online everything works as it should. Since the application is soon to be released i tested it when the phone is offline. This makes it crash. After some debugging i found out that if i do not add any overlays it does not crash. ( i just get the grid, and that i can understand ;D ) As soon as a overlay tries to draw something it crashes. This even includes the provided overlay "MyLocationOverlay", which crashes as soon as the GPS