Im having exact same problems. Di somebody figure this out??
Thanks!
Luke, a few questions related to the GetBufferLock error:1) Have you verified with the Eclipse debugger that your app crashes as soon as you "step into" zoomToResolution()?2) And, that happens 100% of the time?3) Can you copy the entire crash sequence from Logcat and either paste or attach it?4) What's the make/model of the device?5) Android OS version?6) ArcGIS SDK version?7) Code snippet of the method where the error is happening?Thanks,-Andy
are you using the correct map units? I tried setting my scale to 1200 (1":100ft) and it worked. When you call the CenterAt() method, try setting the animation property to false, see if that solves your problem. map.CenterAt(point,false);As Andy points out in the thread below, perhaps the pan animation from CenterAt() is not completing before you are setting the scale, thus nothing is happening.see this thread:http://forums.arcgis.com/threads/51928-Callout-doesn-t-move-with-MapView.centerAt?highlight=animation
map.setOnSingleTapListener(new OnSingleTapListener() { /** * */ private static final long serialVersionUID = 1L; @Override public void onSingleTap(float x, float y) { double _x = x; double _y = y; double scale = 500000; Point pt = new Point(_x,_y); map.centerAt(pt,true); map.setScale(scale); } });
I tried both MapView zoomToScale and zoomToResolution. In zoomToScale I tried 24000 as the scale parameter. In zoomToResolution, I tried .5, which is the highest resolution of my data. Am I misinterpreting these parameters, The only thing that it does is pan the map to center it around the point. No zooming occurs. I want to be able to zoom to the point and zoom to the highest res of the data in the mapview.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.