google-maps-android-api-2

Android GoogleMaps V2 MarkerDemo IllegalStateException no included points

£可爱£侵袭症+ 提交于 2020-01-01 12:01:09
问题 I am creating a customised implementation of the MarkerDemo provided for GoogleMaps V2. I have a strange error whereby I am providing LatLng values to a LatLngBounds.Builder instance and then passing it as a variable with .build. When I run the app in Debug mode through Eclipse, the Map loads. When I run it normally through Eclipse, there is an IllegalStateException thrown with "no included points" as a message. Can anyone help? Here is some code to assist. public class MyActivity extends

Using getTileURL in Android Application with GeoServer

我只是一个虾纸丫 提交于 2020-01-01 09:24:59
问题 We are just starting to work with Google Maps on Android and have a GeoServer set up to provide tiles which we would like to add as overlay on the map. So far, I have followed a few tutorials and references to get started. For getting MyLocation Setting up WMS on Android WMS Reference The problem : While the url that I am generating in the getTileUrl function in the TileProviderFactory does indeed return a png image when I set a breakpoint and copy and paste the url into a browser, it does

After geofence transition how do i do something on main Activity?

青春壹個敷衍的年華 提交于 2020-01-01 06:40:07
问题 When someone enters one of my geofences I want to make a layout visible over my map and start playing some audio. I have been following some tutorials and I know how to do push notifications when they enter, but this all happens in another IntentService class. Maybe this is what onResult is for? Im not sure how to get geofence info from the result parameter LocationServices.GeofencingApi.addGeofences( gApiClient, getGeofencingRequest(), getGeofencePendingIntent() ).setResultCallback(this);

How to enable google map navigation in android app

感情迁移 提交于 2020-01-01 05:35:11
问题 I have two points on google map first one is the source and second is the destination, I have the route between these points on the map.Now I want to navigate user from source to destination as Google does on Google Map Like this:- 回答1: The Google Maps Android API v2 doesn't provide any functionality for navigation. It is in contradiction with Terms of Service of Maps APIs. Have a look at section 10.4 c (iii) of ToS: No navigation. You will not use the Service or Content for or in connection

in Android google maps api v2 for 4.0, show the routes from current location to given lat long

蹲街弑〆低调 提交于 2020-01-01 03:42:11
问题 For android in google maps api v2 its showing whole earth by following all the steps from here http://mobisys.in/blog/2012/12/google-rolls-out-android-maps-api-v2/ , can i zoom in the route from current location to given lattitude and longitude, and the problem is i need to show multiple routes, how is it achievable?? right now i am not doing anything in my activity, but i think i have to do some coding for drawing the routes. how can i do this? thank you so much for your answers, and please

Wrong titles for markers with Google Map Android API v2

北战南征 提交于 2020-01-01 03:30:48
问题 I'm trying to develop some algorythm for clustering markers on map. Amount of displayed markers should depends on current zoom level. If I show one marker from group of 10 I want to set it's title to "10". The problem is that now sometimes visible markers doesn't have title at all, I've no idea how it's possible. Here is my code: public class MainActivity extends FragmentActivity { private ArrayList<Marker> markers = new ArrayList<Marker>(); private Bitmap markerImage; private float oldZoom =

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

How perform click operation on marker custom info window on google map V2 in android

孤人 提交于 2020-01-01 02:34:06
问题 I am implementing google map V2 in my app.I have added custom info window to marker.There are three images cancel,delete & edit. onclick, cancel image window hide. delete data delete & on edit dialog open for editing. My problem is, how perform click operation on on these images? 回答1: There is no direct way to do it, but there seems to be workaround for this (which I haven't tested myself yet). You may see a long description in this answer: https://stackoverflow.com/a/15040761/2183804. 回答2:

Freeform Drawing with Android Maps v2

拜拜、爱过 提交于 2019-12-31 05:48:07
问题 I have a maps application using the new v2 Google Maps API for Android. What I am trying to do is allow the user to draw a line on the map that follows the path of their finger. I understand I will probably need a button to enable/disable this functionality as it would obviously need to disable the pan/zoom controls. Once a user draws their line I need to be able to join the ends up to form a polygon. Does anybody know how this can be done? Really appreciate any help! 回答1: I think you could