[android-developers] Re: Drawing to MapView Incredibly Slow
If I'm both drawing lines and utilizing items, would it be wise to
implement both a MapOverlay and a MapItemizedOverlay? Or do I just
need one?
On Feb 10, 4:55 pm, TreKing <treking...@gmail.com> wrote:
> On Wed, Feb 10, 2010 at 3:43 PM, aspekt9 <aspe...@gmail.com> wrote:
> > What exactly is the span though,
>
> This is the distance between the locations demarcated by the edges of the
> screen. For longitude it's the distance between the locations at the left
> and right edges of the screen. For latitude it's the distance between the
> locations at the top and bottom of the screen.
>
> how would I calculate if a given
>
> > coordinate or geopoint lies in between the span?
>
> You have the mapview's current center location, yes?
> You have the longitude and latitude spans, yes?
> With that you can get 2 GeoPoints that represent the min and max points of
> the view. (center +/- (span / 2))
> With that you can check if a given GeoPoint lies within that min and max.
>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home