android-mapview

using Android Google Maps API to display a Heat Map layer

泪湿孤枕 提交于 2019-12-03 04:23:47
I am doing a project in Android, where I have given a list of Geography Points (lat, lng) and each point has an associated Altitude(height) value with it. My task is to create a Heat Map of the given map with varying colors depending on the points altitude value. Does someone know of any existing library for doing the same. Or, it would also be very helpful to me if anyone can give pointers on how it cam be implemented. My only constraint is that it should work in Android. Thanks in advance. mapex , for example. Or this post . The question is old but Google launched recently the new Google

to view route between two points in map +iphone+Mapkit

﹥>﹥吖頭↗ 提交于 2019-12-03 04:07:16
i want to get the route between the two point in the mapkit! i had done some google work n found this :-http://spitzkoff.com/craig/?p=108 I had used this to display map and pin:- - (void)viewDidLoad { [super viewDidLoad]; self.navigationController.navigationBarHidden=NO; self.title=@"Map"; CLLocationCoordinate2D location; location.latitude=[latLabel doubleValue]; location.longitude=[longLabel doubleValue]; MKCoordinateRegion region;// = MKCoordinateRegionMakeWithDistance(CLLocationCoordinate2DMake((location.latitude) / 2.0, (location.longitude) / 2.0), 1000.0, 1000.0); region.center=location;

how to display location message in chat window same like whatsapp in android programmatically?

和自甴很熟 提交于 2019-12-03 03:46:39
I am developing a chat application. Where user can send location same like whatsapp . (I am not talking about share live location functionality). For this requirement i have use google place picker api. Here I am attaching a code of that. build.gradle implementation 'com.google.android.gms:play-services-maps:10.2.0' implementation 'com.google.android.gms:play-services:10.2.0' AndroidManifest.xml <meta-data android:name="com.google.android.geo.API_KEY" android:value="YOUR_API_KEY" /> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /

Android how to draw paint in free hand in MapView using overlay?

帅比萌擦擦* 提交于 2019-12-03 00:39:06
In my app Draw paint in free hand on Map view but searching lot of information finally got from rectangle shape draw on mapview but i want in place of rectangle draw free hand like zigzag how to change my code Any help please.. MapOverlay.java public class MapOverlay extends Overlay { private float x1,y1,x2,y2; private GeoPoint p1=null,p2=null; private MapExampleActivity mv = null; private Paint paint = new Paint(); private Path path = new Path(); private boolean isUp = false; //constructor receiving the initial point public MapOverlay(MapExampleActivity mapV,float x,float y){ paint

Android MapView With Sliding Menu Obscures Menu

点点圈 提交于 2019-12-03 00:38:13
I have a map view for android maps api v2 in an activity that uses this sliding menu https://github.com/iPaulPro/SlidingMenu . The sliding menu works great except for on the map page. There is a black view covering the sliding menu that is the exact size of the map. This is an example with the map height set at 100dp to outline what I mean. If I touch that view it will go away. How would I get rid of it or make it transparent? I've tried the requestTransparentRegion() trick. No dice there. smokingoyster Found this stack overflow post ViewPager with Google Maps API v2: mysterious black view and

Unable to start activity caused by NullPointerException at ContextImpl.openFileOutput

情到浓时终转凉″ 提交于 2019-12-02 20:57:41
问题 I've released an app which uses the Android Compatibility Library for Google Maps (https://github.com/petedoyle/android-support-v4-googlemaps) and I've received some odd "Unable to start activity" crash reports. I've pasted a couple of sample stack traces below. Anyone else experienced this using the Android Compatibility Library for Google Maps or even using the standard Android Compatibility Library (http://developer.android.com/sdk/compatibility-library.html)? Anyone know how I might be

How to reposition built-in zoom controls in MapView?

这一生的挚爱 提交于 2019-12-02 17:42:10
I need to place built-in zoom controls of MapView into position different from the default position. While it's easy to do using getZoomControls() method, this method is deprecated in recent API versions. Does anyone has idea how to do this without calling getZoomControls()? ludwigm I have an answer to this. I managed to reposition it with this code in the bottom left corner instead of in the middle FrameLayout.LayoutParams zoomParams = new FrameLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); ZoomControls controls = (ZoomControls) getZoomButtonsController()

This app won't run unless you update Google Play Services (via Bazaar)

穿精又带淫゛_ 提交于 2019-12-02 16:21:41
问题 I'm testing out the new Google Maps API V2 for Android, and I'm getting this message when the app launches: This is running on an 4.1 emulator. Here is my AndroidManifest.xml file: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.maptest" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /> <permission android:name="com.example.maptest.permission.MAPS_RECEIVE" android:protectionLevel=

How to remove single marker using Google Maps V2? [duplicate]

吃可爱长大的小学妹 提交于 2019-12-02 16:03:23
This question already has an answer here: Remove a marker from a GoogleMap 9 answers The only method that removes markers from map is clear. However it clears all markers from the map. I want to remove only single marker or group of markers. How could i achieve this? Alexey Zakharov After adding the marker it is possible to obtain its reference: Marker marker = map.addMarker(..); The Marker class has a remove method: I got the same problem, so to fix it I'm doing mMap = super.getMap(); map.clear(); I wrote up a blog post on how to remove Markers when they are moved off the screen, and adding

Error inflating class fragment Android Map v2

孤街醉人 提交于 2019-12-02 12:19:47
问题 I know this is a duplicate question, but solutions from previous post doesn't worked for me. Thats why am asking this question. I am trying to implement Google Map V2 in Android App, I got below error 06-26 19:24:51.035: E/AndroidRuntime(7679): FATAL EXCEPTION: main 06-26 19:24:51.035: E/AndroidRuntime(7679): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.titutorial.mapdemo/com.titutorial.mapdemo.MainActivity}: android.view.InflateException: Binary XML file line #2: