Select to view content in your preferred language

MapView ExtentChanging callback?  What's the Android equivalent?

583
2
02-15-2013 11:19 AM
JonMayfield
Emerging Contributor
I'm trying to draw various items ontop of a MapView, and due to having to use Mono we're currently unable to use classes like PolyLine to render on a graphics layer (the polyline class is simply missing, due to an incomplete wrapping of the API)

What I'd like is some way to know when to redraw my canvas containing paths and icons based on when the map moves.  I'm currently using "OnPanListener" and "OnZoomListener", but neither of these handle map inertia after the touch motion is complete.

The .NET ARCGIS has the "ExtentChanging" event, and I'm hoping the Android version has an equivalent.   Being able to disable map inertia would also be a workable solution, as then I could simply use the touch events to do all the transformations.
0 Kudos
2 Replies
JonMayfield
Emerging Contributor
Anybody?

There must be some way to be notified of map extent changes.
0 Kudos
JonMayfield
Emerging Contributor
So, barring any response from anybody at ESRI, I've had to create a 100hz timer to watch the map centerpoint and trigger a canvas invalidate for my map overlay.   Awful workaround, but it seems like there are no good options.  I can have thousands of objects on my overlay and it works fine (and fast), but as soon as the ESRI control slows down (such as when panning around on a 2gb tiled dataset) there is very noticable lag between the overlay and the map alignment.
0 Kudos