Android :: Clear All Map Overlays Or Markers From Google Map?

Mar 31, 2010

I want to clear all map overlays or markers from google map and using following code

if(!mapOverlays.isEmpty())
{
mapOverlays.clear();
}

which is giving me exception can any one guide me? am i right or wrong if i am wrong then kindly provide me the solution to my problem. i want map clean if there is any marker on it.

Android :: clear all map overlays or markers from google map?


HTC Desire : Google Maps Earth Overlays - How To Add Overlays

Sep 23, 2010

I've searched here and on the interweb, but cannot find out how to add overlays (.kml files) into Maps or Earth. Can it even be done (shame if not) and if so, how do I do it.

EDIT: I've tried MyMapsEditor, but that doesn't run on Froyo.

View 2 Replies View Related

Android :: Add Markers To A Google Map On Droid?

Aug 4, 2010

I've got a place I want to add on my map at a particular lat / lng. I'd like to display that on my map when the activity starts. How would I do this?

View 1 Replies View Related

Android :: Efficient Map Overlays In On Google Map

Nov 24, 2010

I want to do the following and am kind of stuck on these for a few days:

1) I was trying to draw poly lines ( I have encoded polylines, but have managed to decoded those) that move when I move the map(the only solution that I found was for Geopoints to be transformed into screen co-ordinateswhich wont move if I move the map !)

2) I have used helloItemizedOverlay to add about 150 markers and it gets very very slow.any idea what to do ? I was thinking about threads(handler)

3) I was looking for some sort of a timer function that executes a given function, say, every 1 minute or so.

4) I was also looking for ways to clear the Google map from all the markers/lines etc

View 1 Replies View Related

Android :: Dynamic Overlays Slowing Down Google Maps (2.1) On Nexus One

May 7, 2010

I'm trying to create a dynamic ItemizedOverylay (please see the code below) on Google Maps (Android 2.1) on a Nexus One. In my Activity (that extends MapActivity) I'm creating a data thread that is receiving data from the network. A 'handler' is used to communicate the data from the receiving thread to map activity. This data contains the locations (lat, lon) of the markers that I want to overlay on my map. The location of each marker is dynamic (i.e., it changes every time I receive new data from the network.) refreshItems(ArrayList<OverlayItem> newItems) method in invoked inside the handleMessage() of the handler. There are around 11 markers in the ArrayList that is passed to refreshItems

I can see the markers overlayed on the map. However, I've two issues:.....................

View 1 Replies View Related

Android :: Show Multi Color Map Overlays Or Pins On Google Map?

Sep 20, 2010

i am showing list of map overlays on google map using following code

mapOverlays = mapView.getOverlays();
drawable = this.getResources().getDrawable(R.drawable.balloon);
itemizedOverlay = new MarkerItemizedOverlay(drawable,this);

GeoPoint point;
OverlayItem overlayitem;
for (DalMapSearch t : Sr)
{
if(t != null)
{
point = new GeoPoint((int) (t.getLati() * 1E6), (int) (t.getLongi() * 1E6));
overlayitem = new OverlayItem(point, heading, t.getAd_text()+", "+t.getLocation()+"@@"+t.getAd_id());...................

so in such a scenario balloon is displayed i want to show other images too depened upon category or a if statement. any one guide me how can i show different images as a map overlay? for example images are imageA,ImageB,ImageC

View 1 Replies View Related

Android :: Load Markers Dynamically For Current Position In Android Google Maps?

Aug 5, 2010

I'm currently developing an app for Android which uses google map service. Because users will be able to see thousands of markers I would like to load only those which are currently within the map bounds (i.e. when user look at specific map tile). I know how to do it with javascript/html. However, Android doesn't seem to provide any similar methods such as containsLatLng(latlng) or getBounds (I only found getLatitudeSpan and getLongitudeSpan, but don't know how can I use them in order to achieve the similar effect). Can anyone give me some hint on that?

View 4 Replies View Related

Android :: Overlays Not Working In Google MapView Tutorial Android

Feb 16, 2010

Got some errors following the tutorial for MapView when i was going to integrate overlays.

CODE:..............

I am trying to learn and i got an awesome app idea which needs mapview, webview, overlays and tabs.

View 1 Replies View Related

Android :: Google Maps Overlays / "shadow Layer"?

Aug 16, 2010

What can I do with the "shadow layer" of the the google maps overlays? I tried, naively, to draw something (an arc) only when (shadow == true) and got nothing? I'm interested in drawing arcs and arc shadows on a map. is there a nice google-maps way to do this?

View 5 Replies View Related

Android :: Clear History In Stock Google Browser?

Feb 1, 2010

How do I clear the History in the stock Google browser?

View 1 Replies View Related

Android :: Way In Google Maps To Quickly Toggle Traffic On And Off / Clear Them?

Aug 18, 2010

I have a Motorola Droid 2. Is there is way in Google Maps to quickly toggle traffic on and off? And a quick way to clear the map?

On my old Palm I could just hit # to toggle traffic on and off. But on the Droid I have to hit Menu, then layers, then traffic. The same to clear the map. Even opening the keyboard on the Droid2 and hitting alt # does not work.

View 1 Replies View Related

General :: Clear Google Voice History?

Jul 8, 2013

I have thousands. The site only lets u delete 10 at a time. Is thete another way to delete all entries?

View 1 Replies View Related

Android :: Add Markers On Map?

Jan 18, 2010

I wanted to know how to add marker on a map? right now, i am trying to build an application that shows the persons current location, and i can follow it. but the problem is i don't have a pointer, so the changing is vague. what i want is to show the persons location with a marker(e.g some kind of bubble) and follow it.=

View 2 Replies View Related

HTC Incredible :: Want To Clear Driving History In Google Maps

May 28, 2010

Driving me nuts trying to find a way to delete old locations. I read that since the maps update you can no longer delete history and the clear cache option is greyed out.

View 14 Replies View Related

Android :: Show Different Markers On A Map?

Nov 15, 2010

I am displaying markers on a map. I am not sure how I can specify a different drawable resource for different markers?

I would like to show a green pin if locations distance < 50, etc. etc.code...

View 2 Replies View Related

HTC Droid Eris :: Clear Recent Destinations In Google Navigator

Jun 1, 2010

Is there a way to clear the "Recent Destinations" from showing up in Google Navigator?

View 8 Replies View Related

Android :: Remove Shadow On Markers On My Map?

Nov 17, 2010

I am displaying a custom marker on my Google Map. They are placed fine, but they have this funny shadow. How can I remove the shadow? code...

View 1 Replies View Related

Android : How To Draw Dynamic Markers On A Map?

Jul 26, 2010

How would dynamically draw markers on a Mapview? I've got the following code which will hardcode one point in. I'm looking to pull values from a database..

View 1 Replies View Related

Android :: What Does HTC Sense Clear Data Actually Clear?

Jun 24, 2010

What exactly does HTC Sense Clear Data actually clear? That may be a solution to reverting back to 5 homescreen pages instead of 7 without having to do a factory reset. Just curious as to what I am going to mess up? Will i just have to personalize the homescreen again, put widgets up, reconnect to fb, twitter, myfaves, etc. It's not going remove any 3rd party apps, just make me create new widgets, etc..?

View 3 Replies View Related

Android :: Move Markers With Maps API To A New Position?

Sep 21, 2009

I'm wondering if it is possible to move markers when using a MapView. I use a fullscreen MapView which has a few (not more than 5) markers which I would like to move and update by just moving the markers to a new position.

View 2 Replies View Related

Android :: OverlayItem Not Displaying Markers / What To Show It?

Jul 5, 2010

I have the following code and the markers are not appearing on the map at all! code...

View 1 Replies View Related

Android :: Auto Zoom To Fit Markers On An Overlay?

Jun 2, 2010

I have done my fair share of google searches for this and have come up empty.

I have a set of marker(25) that are being displayed on a MapView. I would love to be able to have it zoom to a reasonable level to make the markers readable.

View 2 Replies View Related

Android :: Scale Map Markers By Zoom Factor?

Aug 19, 2010

I have lot of markers on my map. Zooming in each marker shows me a position. but zooming out the markers are overlapping each other and it is more difficult do determine the position of a marker.

Is there a way to scale the marker image depending on the zoom factor?

View 1 Replies View Related

Android : Reading From XML / Need To Create Overlay Markers On Map

Jun 27, 2010

On my app I will be reading in from an XML file thats formatted something like this

<database> <db1>
<db> <name>name here</name> <street>street here</street> <long> longitude here</long> <lat> latitude here </lat> </db>
<db> <name> new name here </name> <street> new street here </street> <long> new longitude here </long> <lat> new latitude here </latitude> </db>
</db1> </database>

With this information I need to create Overlay Markers on the map (using latitude and longitude) and when they're clicked on I need it to display the name with the address. Depending on the conditions of where the map is, the number of markers will be different so I need a dynamic model for reading in these markers.

If I were to use Document methods like getElementById(String name) then I couldn't call getElementById("name") because it would likely try to call just the first <name></name> or give an unintended result.

View 4 Replies View Related

HTC Incredible : How To Clear My Contact List Of My Twitter - Start Over With My Google-saved Contacts

Aug 27, 2010

I recently had my DI replaced due to a tech issue, but before I switched over I backed up everything using "My Backup Pro".

When it backed up my contacts, it backed up EVERYONE - including 550+ people I follow in Twitter. I did not have these as visible in my People (phonebook) list, just in Twitter. When I synced with my new DI, My Backup Pro installed every contact to my People list, as the app must have thought it was all part of my phonebook. I tried to make the list invisible like I had it on my original phone, but that did not work, so I deleted each Twitter contact manually from my People list. They no longer show in my People list (though are available to be made visible from Twitter).

This did not solve the problem. Any app that accesses my contact list (even Search People) displays the FULL list which includes my Twitter contacts. There is no long-press or menu options available to hide them.

I am willing to clear my contacts and upload the list again, as they are all backed up to my Google account, but I am afraid it would sync with the server and delete what is saved there.

Any advice on how to clear my contact list of my Twitter followers, or start over with my Google-saved contacts?

View 1 Replies View Related

Android :: Load Only Markers That Would Be Displayed On Current Screen?

Aug 5, 2010

Using Google Maps on Android does anyone have any ideas on how to load only markers that would be displayed on the current screen? I'm thinking about sending a request to a web service that returns the lat/lng for the relevant markers. But what would the parameters be that I could use to calculate if a given lat/lng is within the screen?

View 1 Replies View Related

Android :: How To Scale Markers And Set Shadow And OnTap Correctly

Nov 17, 2009

I'm scaling markers on a MapView with the following code

CODE:.........

And:

CODE:.............

Which works, but the shadow below the marker has wrong offset when scaled. Also; i override the public boolean onTap(int index) in ItemizedOverlay to detect taps on the markers, but it seems inaccurate. I can click some range outside the marker and still trigger onTap...

View 1 Replies View Related

Android :: Limit For Numebr Of Markers To Show On A MapView?

Nov 3, 2010

As the object of this topic. is there a limit for the numebr of markers to show on a MapView at the same time with the Google API?

View 3 Replies View Related

Android : How To Compute Zoom Level Against Returned Markers?

Aug 5, 2009

I'd like to know if there is already a way to know from a given set of markers, the zoom I should apply to the map or do I have to do it my self? (this depends on the resolution so i expected to find it in MapView because it knows its boundaries.

View 4 Replies View Related

Android :: Overlays Drawn On The Map

Jul 17, 2010

What I am trying to do - I am continuously getting a stream of lat/lng positions, I want to move a overlay item dynamically on the map based on the lat/lng in the stream. I am displaying the location of moving object dynamically on the map

I am putting my whole code in a while(true) loop and trying to read the stream every 5 seconds and refresh the overlays on the map. But overlay items are not shown until the function (either oncreate, or any onclickeventhandler etc) is completed. For example, test code, I am adding a single test overlay item when ever the user clicks on a button. If I put a wait(2000000) "after" I add overlays and invalidate the map, the overlay is not displayed until the time has elapsed and the function is completed.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved