Tag: google-maps

Google Maps: custom LocationSource in iOS

I have built an Android App which is able to use Google Maps for displaying the users geo location with several additional information beside Wifi, Cells and GPS, for instance QR Codes, Beacons or whatever I could use to signal the current position (I don’t take account of the actual accuracy of these locations). I […]

drawing driving routes using waypoints on android ( Google maps, Google direction api, json parsing, decode google polyline)

drawPath() is used to draw polyloine on map. public void drawPath(String result){ try { final JSONObject jsonObject = new JSONObject(result); JSONArray routeArray = jsonObject.getJSONArray(“routes”); JSONObject routes = routeArray.getJSONObject(0); JSONObject overviewPolylines = routes.getJSONObject(“overview_polyline”); String encodedString = overviewPolylines.getString(“points”); String statusString = jsonObject.getString(“status”); Log.d(“test: “, encodedString); List<LatLng> list = decodePoly(encodedString); LatLng last = null; for (int i = […]

(MapView and 1700 Overlays Items).equals(“ Slow”)

I have a MapView and I’m overlaying 1,700 points onto it, each with the same drawable but with different information. I’m currently using Itemized Overlay to add all the overlays then populate once fished. This works, but the performance is slow. Changing zoom level and focus is jumpy. Now, would it be any better to […]

Android: Google MapView show a progress indicator while map is loading

Is there a way to listen if a MapView is still loading? Because I want to show a progress indicator (such as an hourglass) while the MapView is downloading the map tiles. Any solution?

Arrow Mark over Polyline in Android Google Route Map

how to show Arrowheads over Polyline in Android Google map v2 I have gone through couple of links , most of them gives link to JS https://google-developers.appspot.com/maps/documentation/javascript/examples/overlay-symbol-arrow but I need in Android not JS and I can’t use those codes in Android Some are using MapActivity I followed a tutorial to creat map activity too […]

Making TileOverlays transparent

I’m currently working on a App that uses a custom TileSource to display data on Google Maps. I get those data in form of *.png images, and I’m using the URLTileProvider. Everything is working well, but I’m now trying to make the TileLayer transparent, or at least, partly. The goal is, that the layer is […]

Android – Failed to find style 'mapViewStyle' in current theme

I’ve a little problem with my Android Maps Application. So that when I added MapView to my layout xml file it shows me “Failed to find style ‘mapViewStyle’ in current theme” error message. Here’s my AndroidManifest.xml: <?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”com.acilSRV.client” android:versionCode=”1″ android:versionName=”1.0″> <uses-sdk android:minSdkVersion=”10″ /> <application android:icon=”@drawable/icon” android:label=”@string/app_name”> <uses-library android:name=”com.google.android.maps”/> <activity android:name=”.AcilActivity” android:label=”@string/app_name”> […]

How to check if user is inside a Circle Google maps v2

I have a circle on my map. Now I want to detect if the user (or me) is inside the circle. Circle circle = map.addCircle(new CircleOptions() .center(new LatLng(14.635594, 121.032962)) .radius(55) .strokeColor(Color.RED) ); I have this code: LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); LocationListener ll = new myLocationListener(); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0,ll); Location.distanceBetween( pLat,pLong, circle.getCenter().latitude, circle.getCenter().longitude, distance); if( distance[0] > circle.getRadius() […]

Android geocoder reverse location – reliable way to get the city?

I have searched quite a bit without luck so far. The Android Geocoder returns the android.location.Address object. The city, as far as I understood, should be returned in getLocality(). It seems within USA this works well, outside not. I am writing an international app and struggle to find a solution to find out the city […]

Android Google MapView shows only empty tiles

I’m tying to develop a simple app that shows a map. I obtained the debug.keystore API-Key and triple checked it for correctness. I also exported the project as apk and used a custom keystore with associated API-Key. I have the following permissions set: <uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION” /> <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” /> <uses-permission android:name=”android.permission.INTERNET” /> But on my […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.