google-maps-mobile

zoom level listener in google maps v2 in android

为君一笑 提交于 2019-11-28 18:35:53
I'm developing an Android app that is supposed to use Google Maps v2. Now i'm stuck at finding when zoom level of map has changed. Can anyone help me?Thanks in advance. Create an implementation of OnCameraChangeListener , and pass an instance of it to setOnCameraChangeListener() of your GoogleMap . Your listener should be called with onCameraChange() whenever the user changes the zoom, center, or tilt. You find out the new zoom level from the CameraPosition object that you are passed. If you're looking for how to determine if the zoom level has changed from the previous zoom level, here's what

Use google maps offline in an app

主宰稳场 提交于 2019-11-28 15:32:08
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. Elijah Saounkine 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 . Sebastian Dressler You won't have the permission to do that, as stated in Downloading/Caching Google Maps for Offline Use . However you could use the maps

Google Maps works fine on Android but I still get an error “Could not find class 'maps.i.k', referenced from method maps.z.ag.a”

拈花ヽ惹草 提交于 2019-11-28 10:52:07
I got Google Maps Android API v2 to work perfectly on my Android Application by downloading the library, adding it to workspace, then referencing it as a library. But I still get this error as soon as the activity containing the Map Fragment starts Could not find class 'maps.i.k', referenced from method maps.z.ag.a By the way I'm using support map fragment This error does not seem to affect me in anyway nor crash the application nor anything, should I bother fixing it ? Added the manifest P.S E_SelectJourney is where I display and use the map <?xml version="1.0" encoding="utf-8"?> <manifest

Showing a route between two points with multiple waypoints

吃可爱长大的小学妹 提交于 2019-11-28 05:18:48
问题 I am new to android and developing a navigation based application for android.My question is I want to show a route with multiple way-points between source and destination node in Google maps and I don't know how to do it. I have search for this but most of the results are for two points. Please help me to solve my problem e.g:- when app user submits the destination with some way-points the map should display the route from the source to destination with those way-points on the phone. Thanks

Android Google Maps v2 - set zoom level for myLocation

百般思念 提交于 2019-11-27 19:12:32
Is it possible to change the zoom level for myLocation with the new Google Maps API v2? If you set GoogleMap.setEnableMyLocation(true); you get a button on the map to find your location. If you click on it, the map will bring you to your location and zoom it in to some level. Can I change this zoom to be less or more? DiscDev It's doubtful you can change it on click with the default myLocation Marker. However, if you would like the app to automatically zoom in on your location once it is found, I would check out my answer to this question Note that the answer I provided does not zoom in, but

Open Street Maps with Android Google Maps Api v2

百般思念 提交于 2019-11-27 14:01:01
问题 Is it possible to use an open street map provider with the new Google Maps V2 Api on Android? If so can you provide an example, or documentation? I have looked quickly at the docs and found UrlTileProvider() , so it looks likely this is possible. Bonus: Is simply using the MapFragment class with OSM tiles still bound by the Google Maps TOS? 回答1: You need to extend the UrlTileProvider class so you can define the URL for OSM tiled maps and add a tile overlay like that : MyUrlTileProvider

zoom level listener in google maps v2 in android

自古美人都是妖i 提交于 2019-11-27 11:30:15
问题 I'm developing an Android app that is supposed to use Google Maps v2. Now i'm stuck at finding when zoom level of map has changed. Can anyone help me?Thanks in advance. 回答1: Create an implementation of OnCameraChangeListener, and pass an instance of it to setOnCameraChangeListener() of your GoogleMap. Your listener should be called with onCameraChange() whenever the user changes the zoom, center, or tilt. You find out the new zoom level from the CameraPosition object that you are passed. 回答2:

Google Maps works fine on Android but I still get an error “Could not find class 'maps.i.k', referenced from method maps.z.ag.a”

家住魔仙堡 提交于 2019-11-27 05:53:55
问题 I got Google Maps Android API v2 to work perfectly on my Android Application by downloading the library, adding it to workspace, then referencing it as a library. But I still get this error as soon as the activity containing the Map Fragment starts Could not find class 'maps.i.k', referenced from method maps.z.ag.a By the way I'm using support map fragment This error does not seem to affect me in anyway nor crash the application nor anything, should I bother fixing it ? Added the manifest P.S

Android Google Maps v2 - set zoom level for myLocation

孤街浪徒 提交于 2019-11-26 22:44:39
问题 Is it possible to change the zoom level for myLocation with the new Google Maps API v2? If you set GoogleMap.setEnableMyLocation(true); you get a button on the map to find your location. If you click on it, the map will bring you to your location and zoom it in to some level. Can I change this zoom to be less or more? 回答1: It's doubtful you can change it on click with the default myLocation Marker. However, if you would like the app to automatically zoom in on your location once it is found,

Animating markers on Google Maps v2

戏子无情 提交于 2019-11-26 15:14:38
What is the best way to animate markers on Google Maps using v2 API? I am working on a map-centered game where I track locations of people and display them on the map for each other to see. As people move, I want to animate a marker from his current to his latest position. Every person has a direction, so I need to rotate the marker appropriately. What is the best way to do it using the new Google Maps API? DiscDev Some Google engineers have provided a nice demo video with some elegant sample code about how to animate markers from a starting point to an ending point, for all various versions