Handler for map panning

by jgostylo » Tue, 28 Apr 2009 09:29:39 GMT


Sponsored Links
 I have searched this group extensively and have not found the answer
to my issue.

I have a lot of server data being loaded into overlays and I want to
create the overlays as the user pans.  Ideally it would wait for the
user to stop panning before it started loading the data.

What is the best practices procedure for determining if the map has
changed location or zoom level?  I was looking for something along the
lines of onLocationChanged() for MapView or onPan() but I have not
seen anything like that.

Do I just need to set up my own parameters and Override onDraw() in
the MapView and in that method run tests to see if the map has
changed?  This idea seems like overkill and would lead to overzealous
server hits.

Anyone have a better idea?

Thanks.
--~--~---------~--~----~------------~-------~--~----~



Handler for map panning

by jgostylo » Tue, 28 Apr 2009 19:03:11 GMT


 Ok, I just tried to Override onDraw() in the MapView and it is a final
method so I can't do that.  Then I saw onAnimationEnd() as inherited
from View so I decided to Override that.  I set a break point and pan
around the map but the method never gets executed.

I am still looking for a solution.  The MapController does not appear
to have anything I could use to do this.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Handler for map panning

by jgostylo » Tue, 28 Apr 2009 20:23:52 GMT


 I am getting the panning recognition to work by overriding
dispatchTouchEvent for MapView.  I think I will just have to separate
out the tasks and do the same thing for the zoom control




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Invalid routing action. Node A2DP does not exist.

Hi,

Can anyone Help me understand what this error message means? Or how I
can avoid this error occurring? Its occurring on a HTC Hero.

Invalid routing action. Node A2DP does not exist.

It seems to occur when I am calling Intent to Dial a Number, you hear
the first tone come through the speaker (which is wierd in itself)
then the dialer crashes and the above error message is shown.

I have tried the below code before I do my call or dial but to no
avail.

                Context myContext = this;
                AudioManager am =(AudioManager) myContext.getSystemService
(Context.AUDIO_SERVICE);
                am.setBluetoothA2dpOn(false);
                am.setRouting(AudioManager.MODE_CURRENT,
AudioManager.ROUTE_EARPIECE, AudioManager.ROUTE_ALL);

I basically get the issue when I am trying to call a number with the
URL tel:5555555;ext=4535*433 which works in the emulator fine!

Regards

Mark
--~--~---------~--~----~------------~-------~--~----~

2. external flash app?

I am hoping to start learning how to make apps this winter, and am
wondering if this is even possible...

Could an app be developed that would sense the flash of an external
flash device, and take a picture?
--~--~---------~--~----~------------~-------~--~----~

3. IPsec Stac

4. DatePicker throw java.lang.StackOverflowError when embbeded with TableRow

5. Voice 2 text help

6. How to compile a multilanguage version of android?

7. Cannot upload "Promotional Graphic" to Android Market