android-maps-v2

GroundOverlay made with a Canvas in Google Maps Android API v2

ぃ、小莉子 提交于 2019-11-29 13:11:21
I'm also try to draw arc (I'm referencing on this and this questions). I'll get from web service following: Lat and Lng Radius (in meters) Start angle (end angle is startA + 60 degrees) Now I encounter on following problem because I do not have two LatLng, just one, and in new map api v2 there is no radius = Projection.metersToEquatorPixels method for providing to RectF.set(point.x - radius,...) Do you have code example, links, etc? Also what about performances of App, because I'll have up to 500 arcs on map? Starting from a LatLng point you can calculate another LatLng point in a given

Google Maps fragment showing blank grey map

风流意气都作罢 提交于 2019-11-29 12:34:39
I'm having problems with getting the map in my map fragment to show. I have tried several different solutions but the map remains blank (grey). Can somebody please point out what I'm doing wrong? The SHA1 fingerprint I'm using is the one I found in Android > Build . Note: where it says "api key from developers console", I of course have put the correct key. Fragment01.java import com.google.android.gms.maps.CameraUpdate; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.MapView; import com.google.android.gms

Android google map version 2 shows blank white page?

孤人 提交于 2019-11-29 12:05:45
In my application am using Google map version 2.When i run the application in real device through eclipse means it shows the map.but when i export the application as signed apk and am upload my apk in play store.Then i download the uploaded apk file from play store and am run it in my device but it shows only blank white page.i don't know whats the problem.Can any know.please help me to solve this issue. You have to require signed apk with SHA-1 Step 1: Now locate to jdk in C drive(Considering for windows and assigning C drive) C:\Program Files\Java\jdk1.7.0\bin>keytool -list -v -keystore E:\A

How to get click event of the marker text

本小妞迷上赌 提交于 2019-11-29 11:26:23
问题 I am displaying google map api v2 in my app. I have set some markers in the map. I have also set title and snippet on the markers which are shown when you click the marker. Now I want to call a new activity when clicked on the marker's title and not on marker itself. map.setOnMarkerClickListner is called only on the click of the marker. But I dont want to do that. I want the marker to show the title and snippet on the click of the marker but I want to call new activity on the click of the

Clustering map markers on zoom out and unclustering on zoom in

不问归期 提交于 2019-11-29 10:27:08
问题 I am using the Google Map Android clustering Utitlity With Google Maps v2 play services. I am not getting the behavior I expected. As you can see in the two images below, when zoomed in I can see a cluster of 20 and a single marker up an to the left, but when i zoom out til they are on top of each other i am not seeing them cluster.. the 20 cluster still says 20 and not 21? Is that expected behavior? Is there a way can make the cluster show 21 instead of 20+ 回答1: This is default behavior

Maps V2 with viewPager

白昼怎懂夜的黑 提交于 2019-11-29 09:33:06
问题 I'm currently developing for Android 4.3. Background: I'm using pageViewer to scroll between three different fragments. My second fragment (tab 2) has XML with SupportMapFragment and other content. as shown below : My problem http://imageupload.co.uk/files/vrhg1e06x977rkm1vhmd.jpg My Attempt: While searching the web I noticed that for SupportMapFragment I need FragmentActivity which doesn't apply for FragmentPagerAdapter. I need the user to have the ability to control the map as well as

Google Maps Android API v2 SupportMapFragment memory leak

瘦欲@ 提交于 2019-11-29 05:43:13
Using 2 simple activities. First Activity which only holds a button to start the 2nd Activity which holds the map: Main Activity: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void goToMap(View view){ //This is just the onClick method for the button Intent intent=new Intent( this, BigMapTest.class); startActivity(intent); } The map activity: public class BigMapTest extends FragmentActivity { SupportMapFragment mapFragment; GoogleMap map; @Override

How do you programmatically change the width & height of Google Maps v2 (support Fragment)?

烂漫一生 提交于 2019-11-29 05:35:46
How do you programatically change the width and height of a com.google.android.gms.maps.SupportMapFragment? I'd imagine you might be able to wrap it in a viewgroup with match_parent, but I'm hoping not to nest if I don't have to (honestly not even sure it works). <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/storefront_map" class="com.google.android.gms.maps.SupportMapFragment" android:layout_width="match_parent" android:layout_height="250dp" /> To give context, I'd like to expand the map from one height to another on map click. mMap

Drawing multi color PolyLines on Maps V2

这一生的挚爱 提交于 2019-11-29 03:08:45
问题 I am drawing a plain color PolyLine on my map the following way, and it works great: PolylineOptions polyLine = new PolylineOptions(); polyLine.width(5); polyLine.color(Color.RED); polyLine.geodesic(true); for (int i = 0; i < speed.length; i++) { polyLine.add(new LatLng(lat, lng)); } map.addPolyline(polyLine); Now I would want to draw a polyline with different colors between different points, depending on the speed between those two points. There doesn't seem to be an easy way of doing it. I

In Version 2 Map view does not show map

*爱你&永不变心* 提交于 2019-11-28 23:11:47
Map Activity doesn't showing map, it's appear as just white screen with zoom control buttons. Manifest File like this : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.demomap" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <permission android:name="com.example.demomap.permission.MAPS_RECEIVE" android:protectionLevel="signature" /> <uses-permission android:name="com.example.demomap.permission.MAPS_RECEIVE" /> <uses-permission android:name=