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
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
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
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.
View 2 Replies
View Related
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
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
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
May 26, 2010
I have a longer sentence >200 characters. I need to show on the screen having parts of them in different color, like highlighting search results, each with different color. The text should auto wrap with screen width, and have no break sections between parts. I meant with this that I can put sections on a new line. They will have to continue the previous section, only wrap when the screen is off.
The best would be an EditText, as I need to allow editing also, but I am wondering I am able to change the color of various sentence parts, or just as a whole. What do you think, with what UI elements can I achieve this view?
View 2 Replies
View Related
Jul 27, 2010
On the phone it shoes me Holidays with the blue color, and all my other appointments/birthdays with red.
Is there a way to show birthdays in separate color, like orange or yellow? I dont use google contacts birthdays, i just add birthdays into the calendar myself.
View 2 Replies
View Related
Oct 5, 2010
I am experiencing a problem with my app. The 1st screen that appears is a map that displays pins that are located based on an XML file that is loaded from our server.
Sometimes the app loads as expected. Other times, the map loads but none of the pins appear until you touch the screen.
View 2 Replies
View Related
Aug 26, 2010
I have 5 pins added to a map. How can I tell the MapView to zoom as much as possible and keep all pins in view?
---I found it:
http://sdhillon.com/find-the-center-and-span-of-a-set-of-points-android-and-iphone-example/
View 3 Replies
View Related
Jun 23, 2010
There's no method available to us to display a callout / bubble above an ItemizedOverlay item when, tapped, right? I don't think there is, just wondering if I'm missing this in the docs before I start my own.
View 4 Replies
View Related
Oct 2, 2012
Is there a way to put custom pins on the map? I went hiking and found interesting things on the way so i thought lets mark this on the map for future reference... But i couldn't Also several important places in town aren't in the map...
View 1 Replies
View Related
Apr 21, 2010
Not sure if this is for 1.5 (I'm on 2.1), but Google Maps now has navigation and multi-touch. There was a hacked version by Brut.
View 11 Replies
View Related
Jul 12, 2010
Can you add more than 1 Google voice account to a phone and would it require more than 1 gmail account?
View 1 Replies
View Related
Nov 20, 2009
I found out today that when I use the headphone output from my Droid, I can feed the Google Maps turn-by-turn through my car speakers using the aux-in on my head unit. I can also play music out of my Droid in the same fashion. I can even do both at the same time! But here's the rub. The Google Map "Voice" is so loud compared to the music out of my Droid that if I have the music playing loud enough to hear. Google Maps blows out my speakers! There doesn't seem to be a volume control on the Google Girl, so I guess this is as much a feature request to be able to mix the Google Girl up a bit over the music.
View 3 Replies
View Related
Nov 14, 2013
Just installed the new Google Search. But i dont have any options to turn on cards, like TV shows, local transport etc. Do these appear over time? I only have 4 things in "Everything else" but i have seen people have like 20+
View 1 Replies
View Related
Sep 13, 2010
Droid Incredible 2.2 no root default camera app user. When I tap to focus on the camera and am really close to something it goes from blurry to sharp and then blurry at the last second (when it snaps the picture) I took this video to demonstrate what I mean. Is there any way to take a picture like this? Or to manually focus with the stock camera app? Or an app that will help me take good quality macro pics of coins, pins, etc. I will pay for an app. I saw posts with the macro camera lens but I have no desire to glue a metal washer onto my camera lens.
http://www.youtube.com/v/67IhpLU9-rU
View 2 Replies
View Related
Jul 1, 2010
Why can't I synchronize my google calendars WITH THE SAME COLOR!?
iPhone has the same problem but work arounds, why is the GOOGLE Android OS not in sync with my actual colors in GMAIL CALENDAR?
View 8 Replies
View Related
Jan 5, 2010
I have, for the time being, a custom view with a 9-patch image as a border.
That custom view is placed three times in a LinearLayout, so it looks like this:
+------------------------+
| CustomView |
+------------------------+
| CustomView |
+------------------------+
| CustomView |
+------------------------+
I have attached a click event listener to the View, so it is clickable. But then I click it, I cant see that I am clicking it - there is no change in color.
So, Im thought that I'd attach a "onPress" listener, and then change the background of the view but I couldnt find such a listener.
So, the question is - how do I create the behaviour on the View so I can see that it is being pressed? this is normally done in Android with a green background to indicate that it is now being pressed.
View 1 Replies
View Related
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
Nov 2, 2009
In my app I am drawing bus routes on top of a MapView. The routes have anywhere between a dozen and a few hundred GPS coordinates that describe the route that the bus takes. The problem I'm having is that once I draw out all these lines panning/zooming the MapView is incredibly slow (even clicking the 'Back' button takes a minute to happen). I'm not sure how relevant it is, but I put in some debug code then checked the logcat output and the MapView is repeatedly calling the draw() method of the Overlay whether anything has changed or not. This is happening several times a second and is causing a massive amount of garbage collection to happen (2-3 MB every second).
View 2 Replies
View Related
Sep 28, 2009
My problem is my MapView becoming very laggy and so non-responsive at times, that Android thinks its hit deadlock and tries to close it.
I am adding 60 overlays to the map view and i originally thought that the icon size may be causing the problem by using up all the memory. When i decreased the overlay icon size, it did improve things, though it is still to slow to be usable. Has anyone experienced anything similar and have a workaround? There may be a better way of doing it other then extending the Hello MapView example.
View 8 Replies
View Related
Sep 12, 2010
I have the following code to add an Overlay
myMapView.getOverlays().add(sites);
myMapView.invalidate();
I also have the following remove code where sites is a global variable.code...
Sometimes I am left with duplicates so would like a way to remove all overlays from a map, is this possible?
View 1 Replies
View Related
Sep 28, 2010
I am looking to create a map application. I want it to show a location that user selects from a list and show here the location is, then add a button on the map so that the user can navigate from there current location to the one selected. I have looked at tutorials but cannot find anything that does this. Anyone know where I might find a tutorial that shows this or how I can extend my simple map to show a given location.
View 1 Replies
View Related
Feb 14, 2010
i have a problem with my mapView. my app reads "some" gps points out of a file and i want to draw a route (drawing lines between the gps point). If my file contains many gps points, my app works really slow. i think its working slow, because i draw all overlays. now i want to check, whether a point is visible in my mapView or not. so i have to get the mapCenter and Lat/lon span (getLatitudeSpan,..) !? how and where must i save my points and how can i check all my points (after my mapCenter has changed for example). Shall I save my points in a list (in my Overlay class??) and iterate through every list item and check, wheter its visible or not?
View 4 Replies
View Related
Oct 29, 2009
I've been reading the (shoddy) documentation for the Google Maps API (MapActivity et al), and I think I have roughly worked out how it works. It seems that if you want to add a marker overlay you can use ItemizedOverlay easily, but you have to add all your markers at once. There doesn't seem to be any way to remove them.
What I want to do is query markers from an online database as the user pans around (in the same way the actual map tiles are fetched). Is there a simple way to do this?
As far as I can tell I need to subclass Overlay and implement the draw method, but where is the best place to put the code that fetches new markers when the map is panned? There doesn't seem to be an onMapChanged() method anywhere. My best guess is MapController.onKey() but that seems wrong.
View 2 Replies
View Related
Feb 17, 2010
I'm seeing a bug with overlays on MapView with the Nexus One. Pinch and zoom multitouch gestures don't scale my overlays until the user releases the gesture, at which point the overlay redraws itself. In contrast, the My Location overlay in Google Maps WILL scale during the gesture. Is there a way to fix this in my app, or is this a MapView bug?
View 2 Replies
View Related
Mar 1, 2010
I followed the instructions from the google hellomapview tutorial. I get a working mapview etc. But the two items that are added to the map are not shown. It seems they are there somewhere because tapping at the specified location shows the message that was added to the items.
Here is my source code. It should be very close to the google tutorial source code.
CODE:.............
View 2 Replies
View Related
Apr 17, 2010
I have a map in my android application that shows many markers (~20-50). But the app performs very poor when i try to scroll/zoom (in Google Android Maps i did a sample search for pizza and there were also some 20-50 results found and i didn't notice any particular performance problems when zooming/scrolling through the map).
onCreate() {
....
drawable = this.getResources().getDrawable(R.drawable.marker1);
itemizedOverlay = new MyItemizedOverlay(drawable,mapView);
...
callWebServiceToRetrieveData();
createMarkers();
}..............................
View 4 Replies
View Related