Android :: Do MapView Overlays Get Painted At Angle

Oct 9, 2009

When an overlay is put on a MapView, the shadow suggest that its at an angle and not flat on the map.

I have been creating scaled bitmaps to overlay on a mapview, but i am either geting the scale wrong or the overlay is being painted at a slight angle, sitting up a bit, rather then being flat to the map.

Does anyone know if this is true? and if so, is there a way to stop it painting at an angle or do you know the angle so i can compensate for it when creating the bitmapped overlay?

Android :: Do MapView Overlays get painted at angle


Android :: MapView Overlays

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

Android :: MapView Draw Overlays

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

Android :: Dynamic Pin Overlays In MapView

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

Android :: MapView Overlays With Multitouch

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

Android :: Overlays On A Mapview Not Shown

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

Android :: MapView Animated Overlays?

Oct 1, 2010

The Android the MapView Overlay class mentions two draw methods. One regular, and one for animated overlays.

I have tried to find more information on how to animate overlays and use this second method, but it all keeps coming back to the same forum postings. Can anyone explain how you specify to the MapView that a certain Overlay should be animated? How do you specify the manner in which it animates?

If it's relevant, I'm currently trying to draw pins in the map that update in realtime with streaming GPS locations for objects. I get new data every two seconds and need to tween the locations by having the pins move in a simple straight line between coordinates.

View 1 Replies View Related

Android :: MapView Overlays Containing Widgets/View

Dec 30, 2009

I've been searching for this for quite a while and never come across a way to do it. In the Google Maps App, when you search for directions, there are overlays with buttons in them, and I want a similar thing, a marker with an image, text and button inside.

I've implement ItemizedOverlays before and made the marker clickable which I would event be happy with if I could put a linear layout inside the marker to organise the image and text since they are different for each marker.

View 3 Replies View Related

Android :: Creating MapView With ContextMenu Without Overlays

Oct 27, 2010

I have a mapview and i wish to display a ContextMenu when longclick but so far the closest solution i've found is here on anddev , the main reason i do not like that method is because any click activate the ContextMenu instead of a long click.

Question: Is there a way to display the ContextMenu of a Map without using Overlays? Why?

View 3 Replies View Related

Android :: Workaround For Mapview Overlays Not Pinch-zooming Correctly

Oct 26, 2010

If a user does a "pinch zoom" on the map, my overlays don't properly size until the end. This has been noted in other posts, so i assume it is a known issue.

Problem is, my client finds it totally unacceptable, as I am tasked with making the android app look as good as the iphone version.

Is there any way to correct this, even if it is a horrible hack? For instance, can I subclass the mapview and handle drawing or override some other method?

View 1 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

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 : Save / Activity With MapView And After Reload Same Mapview?

Jul 16, 2010

I had found a lot of stackoverflow post about save an Activity and the reload it.

My question: How can I have an Activity with an MapView and after reload the same mapview?

What is the best way to switch between activity and views?

View 2 Replies View Related

Android :: How To Get Angle Of View Of Camera?

Feb 4, 2010

Is there a possibility to query the hardware specs of the camera. I'm especially interested in the AOV "Angle of View"[ http://en.wikipedia.org/wiki/Angle_of_view].

View 2 Replies View Related

Android :: Rotation Angle Of Entire Mobile Phone While Using

Oct 14, 2010

I'm working on an Android program for my research. It needs to find out the angle while user using my mobile phone. The angle here is like a rotation angle of entire mobile phone, not the widgets in layout.

I've tried keyword "angle" on
http://developer.android.com/reference/packages.html

And I found a method "onSensorChanged" under public interface SensorListener. But the description there is too hard to me to understand. Is it the function I want?

View 1 Replies View Related

Android :: How Camera View Angle Determined In GetHorizontalViewAngle?

May 21, 2010

I'm curious how the camera view angle determined using getHorizontalViewAngle? Is it predefined within the API, or is it provided by the hardware?

View 3 Replies View Related

Android :: Move Ball On Particular Angle In Droid Canvas?

Nov 11, 2010

How to move ball on particular angle in android canvas?

View 1 Replies View Related

Android :: How To Calculate Angle Between Line Defined By Two Points

Apr 20, 2010

I'm currently developing a simple 2D game for Android. I have a stationary object that's situated in the center of the screen and I'm trying to get that object to rotate and point to the area on the screen that the user touches. I have the constant coordinates that represent the center of the screen and I can get the coordinates of the point that the user taps on. I'm using the formula outlined in this forum: How to get angle between two points?

-It says as follows "If you want the the angle between the line defined by these two points and the horizontal axis:
double angle = atan2(y2 - y1, x2 - x1) * 180 / PI;".
-I implemented this, but I think the fact the I'm working in screen coordinates is causing a miscalculation, since the Y-coordinate is reversed. I'm not sure if this is the right way to go about it, any other thoughts or suggestions are appreciated.

View 2 Replies View Related

HTC EVO 4G :: Front-Facing Camera Angle

Jun 12, 2010

I've just been fooling with the front facing camera and I noticed something that maybe some of you can explain more thoroughly. When I have the camera held vertically, the alignment is great, but when I turn the phone horizontally the image has a funny angle. It is almost like the lens is angled to the right, which would mean that it is slightly angled down when held vertically. Am I just getting goofed up by the "mirror image" issue? This isn't a problem, but it does make self portraits while being horizontally held pretty weird.

View 6 Replies View Related

HTC EVO 4G :: Any Charger With Wire At Right Angle To Plug?

Jun 14, 2010

Anyone know of a charger where the wire is at a right angle to the plug? In almost every case, there is too much tension on the cord when plugged in to keep it standing on the kickstand. Also, in the car, a right-angled charger would be useful for me. I found a right-angle auxiliary input for the stereo, and that helps some. Previously, I had one big plug coming straight out of the bottom, and another coming straight out of the top.

View 10 Replies View Related

HTC Desire :: Looking For Right Angle Micro USB Plug?

Aug 23, 2010

I am in the UK and see that this item:-
Amazon.com: Startech.com 3FT Right Angle Micro USB Cable Is A Fully Rated USB Cable with The: Electronics is currently unavailable in Amazon UK. I need the micro right-angle plug.

View 6 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

Android :: More Efficient Map Overlays

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

Android :: Possible To Remove All Overlays?

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

HTC EVO 4G :: Some Macro / Wide Angle Lens Shots

Jun 23, 2010

I just got the Macro/Wide Angle lens I ordered online for my Evo last night, so here are some shots from today.

View 18 Replies View Related

General :: How To Change Viewing Angle Of Screen

Jul 15, 2012

I want to change the viewing angle of my screen cos it looks better whrn tilted. how do I do that?

View 2 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 :: Map Performance Poor Because Of Many Overlays?

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

Android :: ImageView Clickable Overlays

Apr 14, 2010

I have a ImageView and draw some things on that view. Now I want to have the position of the click in the onClickListener. Although I think that's not really possible (storing the position in the onTouchListener is not working), I want to ask, if there is any other way to accomplish that? The goal is to have a image with some overlays, that should be clickable. I thought about AbsolutLayout, but that is depracated, so what now?

View 1 Replies View Related

General :: Google Maps Navigation Viewed At Angle?

Jul 25, 2012

When using Google Maps Navigation, how do you get it so as you're following the directions the maps is viewed at and angle so you can see further ahead on the map. Also how do you have the screen/map turn as the car turns?

Right now it's just looking down and with no angle/tilt on the arrow and the orientation stays "north up" all the time. It used to do this.

View 3 Replies View Related







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