Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Pedro Teixeira
Thanks Carlos, I'll take a look just now ;) On Jul 23, 2010, at 3:32 PM, Carlos Silva wrote: On Fri, Jul 23, 2010 at 15:25, Pedro Teixeira > wrote: Hello MArk, I used your NooYawk example to help build my code. I'm just having some issues changing the appearance of the onTap overlay. Is it pos

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Pedro Teixeira
The popup.xml isn't a table layout? On Jul 23, 2010, at 3:31 PM, Mark Murphy wrote: On Fri, Jul 23, 2010 at 10:25 AM, Pedro Teixeira wrote: I used your NooYawk example to help build my code. I'm just having some issues changing the appearance of the onTap overlay. Is it possible to change it

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread TreKing
On Fri, Jul 23, 2010 at 9:25 AM, Pedro Teixeira wrote: > Is it possible to change it from a TableLayout to a RelativeLayout? Sure, why not? - TreKing

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Carlos Silva
On Fri, Jul 23, 2010 at 15:25, Pedro Teixeira wrote: > Hello MArk, > > I used your NooYawk example to help build my code. > I'm just having some issues changing the appearance of the onTap > overlay. > Is it possible to change it from a TableLayout to a RelativeLayout? > This XML is sometimes comp

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Mark Murphy
On Fri, Jul 23, 2010 at 10:25 AM, Pedro Teixeira wrote: > I used your NooYawk example to help build my code. > I'm just having some issues changing the appearance of the onTap > overlay. > Is it possible to change it from a TableLayout to a RelativeLayout? NooYawk does not use a TableLayout. --

[android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-23 Thread Pedro Teixeira
Hello MArk, I used your NooYawk example to help build my code. I'm just having some issues changing the appearance of the onTap overlay. Is it possible to change it from a TableLayout to a RelativeLayout? This XML is sometimes complicated. I just wanted to appear some sort of box in the center wit

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-10 Thread Brad Gies
Hi Pedro, There are several ways to do it, but you probably want to do it when you create the overlay. If you are not using the overlayItem tag for anything else, just set the tag to the Geopoint, and then you can access it by casting the tag to a Geopoint after you get the item in the code b

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-08 Thread Pedro Teixeira
Is there anyway to get the values that created this overlay and compare them with the values of GeoPoint geo ? My code is aproximmating values so I never get the numbers right... I don't know which values can I use from the onTap method to compare with the ones that created the overlay itse

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-05 Thread Pedro Teixeira
Thank you very much, I've implemented some parts of the code you gave me in my code and works like a charm. I just had my overlay class in a separate file and i'm not sure how to access the variables like the map from there. I'd like to keep the format I had before, but if its not possible, t

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-05 Thread Mark Murphy
On Mon, Jul 5, 2010 at 5:58 PM, Pedro Teixeira wrote: > Any news on how to implement this ? Is overriding the class that > extends itemizedOverlay on the onTap method enough? > I need to show information when the user clicks a marker and cant seem > to find possibilities Here are examples of how

[android-developers] Re: ItemizedOverlay using both onTap methods

2010-07-05 Thread Pedro Teixeira
Any news on how to implement this ? Is overriding the class that extends itemizedOverlay on the onTap method enough? I need to show information when the user clicks a marker and cant seem to find possibilities On Jun 29, 9:52 pm, Steve Howard wrote: > Trying to resend this reply as I think it ma

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-06-29 Thread Steve Howard
Trying to resend this reply as I think it may not have gone through the first time... Steve On Thu, Jun 24, 2010 at 11:24 AM, Steve Howard wrote: > I think the ideal usage would be something like this: > > public boolean onTap(GeoPoint point, MapView mapView) { > // first, let the superclass c

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-06-28 Thread TreKing
On Thu, Jun 24, 2010 at 11:57 AM, Carlos Silva wrote: > I don't really agree with this. > OK, can you elaborate why not and how you believe the functions work? Any more info we can get on the Maps API, given the craptastic documentation, would benefit everyone. I use onTap(int) to detect if an

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-06-24 Thread Steve Howard
I think the ideal usage would be something like this: public boolean onTap(GeoPoint point, MapView mapView) { // first, let the superclass check if the event hit a marker; if so, it'll call onTap(index) // if it returns true, that means onTap(index) returned true, meaning the event has been ha

Re: [android-developers] Re: ItemizedOverlay using both onTap methods

2010-06-24 Thread Carlos Silva
On Thu, Jun 24, 2010 at 17:49, TreKing wrote: > On Jun 15, 9:15 am, tfriest wrote: > > Does anyone know of a better way to do this? > > As you've seen, the maps documentation is pretty pathetic. What I know > of the onTap functions has been gleamed from trial and error and > experimentation. Thi

[android-developers] Re: ItemizedOverlay using both onTap methods

2010-06-24 Thread TreKing
On Jun 15, 9:15 am, tfriest wrote: > Does anyone know of a better way to do this? As you've seen, the maps documentation is pretty pathetic. What I know of the onTap functions has been gleamed from trial and error and experimentation. This is how I believe it works: onTap(int) determines whether