google-maps-android-api-2

Android Google Map V2 Display Blank and show only zoom button?

眉间皱痕 提交于 2019-12-09 16:26:38
问题 i use the google map v2 and display the multiple marker but first i want to display the map on the screen i put down my all the files here is gives only blank i will check it out all but nothing work for me main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen

How to implement Google Maps within a Fragment and use the GoogleMap object?

回眸只為那壹抹淺笑 提交于 2019-12-09 13:24:51
问题 How to implement GoogleMap in a Fragment? I'm trying to develop the same thing, but getMap() cannot be executed because SupportMapFragment (when executing the line (SupportMapFragment)getActivity().getSupportFragmentManager().findFragmentById(‌​R.id.map) ) returns a null object. I've tried extending MapFragment and SupportMapFragment instead of Fragment, but they didn't work... I just don't want to create a new activity to show a map: I want to show a mere Map instead my main activity. Can I

Draw circles of constant size on screen in Google Maps API v2

柔情痞子 提交于 2019-12-09 13:21:12
问题 I'm working on an Android Application using Gooogle Maps API v2. I have markers on my map, and I'd like to circle one of them. I managed to do that easily, by using the Circle and Circle Options classes. But I'd also like my circle to keep the same size on the screen when zooming or unzooming, just like the markers do. It means that the circle must have a constant radius in terms of pixels. Sadly, we cannot set a radius in pixels in the API v2. I have tried several solutions, but I'm not

Google Maps Android API v2 - MarkerOptions draggable and visible methods

霸气de小男生 提交于 2019-12-09 12:55:21
问题 I'm playing with the new Google Maps Android API (v2) released earlier this month and I was delighted to see a MarkerOptions.draggable(boolean draggable) method which I thought would create a draggable marker when passing in a draggable value of true . However, on trying it (i.e. adding a marker as such to the map), it doesn't seem to do anything. The MarkerOptions.visible(boolean visible) method too, which I thought would hide the marker from view when passing in a visible value of false .

Draw Text on Google Map no longer possible?

对着背影说爱祢 提交于 2019-12-09 11:57:37
问题 I'm upgrading an Android application from version 1 to version 2 of the android google maps API. In my version 1 code, I was able to draw text directly on the map in my subclass of ItemizedOverlay by overriding the draw() method, as follows. The text I want to draw is dynamic, an additional text item that I want to display next to each map marker, so the text will be added/removed frequently as different symbols are plotted / removed. @Override public boolean draw(Canvas canvas, MapView

Load only markers surrounding my location Google Map v2 Android

南楼画角 提交于 2019-12-09 06:52:26
I have a lot of markers (1700 or more) loading on a Google Map v2 in Android. I would like to cut down on the amount of memory being used creating this map as it seems to be FC my 2.3 Droid. I would like to add points only if they are within the visible screen area. I have looked at the Google Maps Extension and see this: map.setClustering(new ClusteringSettings().enabled(false).addMarkersDynamically(true)); However my for loop adds all the markers to the map. How do I set this up and only add my markers per this method? Here is my for loop adding markers: int nsize = visibleMarkers.size();

What does map.setMyLocationEnabled(true) really do

半世苍凉 提交于 2019-12-09 05:06:07
问题 I am setting: map.setMyLocationEnabled(true) But I am wondering what this really does. What I know: I get a locate me button in the upper right corner of the map I get a blue icon on the map that represents my current location Here is my concern. I am writing a location aware app but I am concerned about battery. Elsewhere in my app (via preferences) I set up a LocationManager and listen for location events so I can log them. But part of my preferences is the accuracy at which I get updates

“Google Play services are updating” error on release, not emulator (Google Play Services 12.6.73, Huawei devices)

大城市里の小女人 提交于 2019-12-09 04:16:24
问题 I'm facing the same issue as in Stack Overflow question "Google Play services are updating" in Google Maps API . Unfortunately, out of nowhere, some of my users are suffering this issue, as well as my own phone. On the other hand, for other users it seems to work perfectly fine. This issue appears only on maps in my app. I've tried to clean Google Services's cache on my own phone - still nothing. On my emulator it works fine. I've searched all over the Internet and haven't managed to find a

How do I add markers to streets only - Android Development

耗尽温柔 提交于 2019-12-09 03:37:11
问题 After plenty of searching, I haven't yet found a solution that works for me and I'm really hoping someone here could help me. First I'll explain my problem, and then I'll mention some of the approaches I've attempted/considered so far. Basically, I'm developing an Android app where markers randomly appear around the user's location. The catch is, the markers need to be placed on streets only. I've been working with Google Maps Android API V2 but I'm trying to work around using anything with

Change roads color in “google maps android api v2”

北慕城南 提交于 2019-12-09 02:05:13
问题 I would like to know if there is an equivalent to javascript api v3: Styled Maps Because i need to change the roads color, and would like to mask road labels. Is it possible directly from the android v2 api? I tried to use javascript v3 api to fix the precedent problem but my app needs tilt like this too and it looks like no tilt for javascript v3 api :( . Finaly, do someone have a solution to: add tilt to javascript v3 api for ROADMAP or/and change the roads color in android v2 api Thank you