google-maps-mobile

MapActivity could'nt get connection factory client

北慕城南 提交于 2020-01-06 15:44:07
问题 I've been looking for much on google about the problem, but I have not resolved. The map is displayed, but I located at the point where I want and still giving me the same failure: 06-09 12:10:57.231: I/MapActivity(1532): Handling network change notification:CONNECTED 06-09 12:10:57.231: W/IdleConnectionHandler(1532): Removing a connection that never existed! 06-09 12:11:04.829: W/KeyCharacterMap(1532): Can't open keycharmap file 06-09 12:11:04.829: W/KeyCharacterMap(1532): Error loading

Google Maps Android V2 and Direction API

一曲冷凌霜 提交于 2020-01-01 03:12:28
问题 I'm developing an app where i need to know the path between the current user posistion and a point of interest. I'm using android 2.3.3, google maps android v2 and direction api. My problem is that all the code i have found is for the old version of the maps, and I also tried to adapt the code but i failed. I try to change GeoPoint (not supported in this new versione) in LatLng. the problem is that i can't display the path, to do it i create a new polyline and i add it to the map. i post my

Google Maps Android V2 and Direction API

大憨熊 提交于 2020-01-01 03:11:09
问题 I'm developing an app where i need to know the path between the current user posistion and a point of interest. I'm using android 2.3.3, google maps android v2 and direction api. My problem is that all the code i have found is for the old version of the maps, and I also tried to adapt the code but i failed. I try to change GeoPoint (not supported in this new versione) in LatLng. the problem is that i can't display the path, to do it i create a new polyline and i add it to the map. i post my

Unable to get current GPS Location co-ordinates

痴心易碎 提交于 2019-12-24 15:52:14
问题 I have been trying hard to get my current location's GPS co-ordinates but my app never locks on to a GPS satellite. The GPS icon in the notification area just keeps on blinking. Whereas I tried using Google Maps on Android (the pre-installed app) and that thing is able to lockon in approx 60 secs! In both of the cases my 3G data connection was switched on and working. Update : I am using Android 2.3.3 (HTC Desire S (Factory installed OS; no updates applied)) Logcat output is here. Now this is

How to get Latitude/Longitude from JSON responsed by google map apis

时光总嘲笑我的痴心妄想 提交于 2019-12-24 00:11:11
问题 I am not able to properly extract out the latitude and longitude point set to draw route further. Can anybody get me the code to do so? Thanks in advance 回答1: public class MapprojectActivity extends MapActivity { /** Called when the activity is first created. */ static final String TAG_RESULTS = "results"; static final String TAG_GEO = "geometry"; static final String TAG_LOCATION = "location"; static final String TAG_LAT = "lat"; static final String TAG_LNG = "lng"; JSONArray res = null;

Limiting the MapView to half the screen

老子叫甜甜 提交于 2019-12-23 16:41:59
问题 I am trying to get the map to fill in only the upper half of the screen and some other layout in the bottom half. Now I know that this should be possible using weights in combination with a tablelayout. But the same piece of XML code works perfectly with say buttons but not with map. Screenshots here. The XML code: <TableLayout android:id="@+id/tableLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TableRow android:id="@+id/tableRow1" android:layout_width=

How to display multiple markers with different icons in Google Maps Android API v2?

只愿长相守 提交于 2019-12-18 06:58:02
问题 I am parsing an XML file which contains the data for my Android Application that will be displayed on a map using the Google Maps Android API v2. The sample format of the XML file is: <markers> <marker name="San Pedro Cathedral" address="Davao City" lat="7.0647222" long="125.6091667" icon="church"/> <marker name="SM Lanang Premier" address="Davao City" lat="7.0983333" long="125.6308333" icon="shopping"/> <marker name="Davao Central High School" address="Davao City" lat="7.0769444" long="125

Use google maps offline in an app

半城伤御伤魂 提交于 2019-12-17 17:25:51
问题 I'm trying to develop and app that overlays some information on a google map. I was wondering, if it is possible to cache at least a portion of this map, so that it could be used offline. 回答1: You can use an OpenStreetMaps controller (like osmdroid) and Google Maps tiles. According to the Google Maps TOS (10.1.3.b), it seems that you can use a portion of maps if you cache it temporarily and securely. Read more at this tutorial. 回答2: You won't have the permission to do that, as stated in

Display multiple markers on the Google Map in Objective C

和自甴很熟 提交于 2019-12-12 09:22:28
问题 How can I display multiple markers on the Google Map in iOS? I used the following approach, but it didn't work. for (int i = 0; i < [array count]; i++) { pointsToUse[i] = CLLocationCoordinate2DMake([[[[array objectAtIndex:0] componentsSeparatedByString:@","] objectAtIndex:0] floatValue],[[[[array objectAtIndex:0] componentsSeparatedByString:@","] objectAtIndex:1] floatValue]); [_map animateToLocation:pointsToUse[i]]; GMSMarkerOptions *options = [[GMSMarkerOptions alloc] init]; options

How does Google Maps and Nokia Maps generate routes from point to point

依然范特西╮ 提交于 2019-12-12 04:12:57
问题 I will like to know if anyone has an idea on the concept behind point to point route generation on google maps and nokia maps. What logic was used to determine the route and generate directions from any point on the map to another? I wouldn't mind guesses or something of that sort. I just want to understand, how it works. 回答1: This is just a guess, but probably something like Dijkstra's algorithm. It most likely is some kind of graph-search algorithm, with each node representing an