POST
|
Shelly, It could be device itself. Mine is Samsung Galaxy Note 10.1(2012 version) with Android 4.1.2. I've tried on 3-4 same devices, same thing happened. The Auto Pan got stuck, the map didn't pan while tablet moving. I tried to restart LocationDisplayManager but it still didn't work. The only way to get it to pan again is to get out and get back to the app. Also, we've tried on Samsung Galaxy Note 10.1 (2014 version) with Android 4.3, it is better. The entire trip (45 minutes on the bus) the map only get stuck once at the beginning, as compare to 2012 tablet which stucked more than 3-4 times. Thanks a lot, Thom
... View more
11-05-2014
11:55 AM
|
0
|
0
|
189
|
POST
|
Thanks Shelly, It works, the issue was that I also used the codes below, hence the accuracy never changed. if (location.hasAccuracy()) { accuracy = location.getAccuracy(); } I commented them out and set accuracy = 400; to get the zoom scale I needed. Now, we tested the Navigation autopan mode in Washington DC street yesterday and noticed that if 4G signal is low, the map stopped navigating and got stuck even after 4G signal was back. I had to reopen the app to get the map reinitialized in order to see it auto pan again. Is there any trick to solve this?
... View more
07-31-2014
07:38 AM
|
0
|
2
|
189
|
POST
|
Hi Shelly, From your sample, I'm wondering what's the use of zoomToWidth? When I debug, I saw this value changes but Envelope zoomExtent always the same, meaning the zoom scale at the end is the same. With mMapView.setExtent(zoomExtent, 0, false), the zoom is too close, I want to be able to adjust the zoom but some how, it doesn't matter what zoomToWidth I passed in, the zoom is always the same. Also, I'm not familiar with Geometry, what egs (SpatialReference.create(4326)) and wm are used for? thanks a lot, Thom
... View more
07-29-2014
11:57 AM
|
0
|
1
|
189
|
POST
|
Thanks Shelly, It worked. The difference between your code and my code is I used mMapView.zoomTo() to zoom, and it will stop AutoPan (because of animation?), even after I set autoPanMode back to Navigation. mMapView.setExtent() in your example should do the trick. thanks, Thom
... View more
07-25-2014
01:27 PM
|
0
|
0
|
686
|
POST
|
Thanks Shelly, I checked isStarted() and it showed "true". Checked GetAutoPanMode(), it showed from NAVIGATION to OFF. The reason it went from NAVIGATION to OFF is because perhaps I zoomed to the GPS location after the map initialized. I have to zoom it because otherwise it only displays the world map from out of space view, which not really helping. Is there a way to setAutoPanMode from OFF back to NAVIGATION? Why autoPanMode not zooming to the GPS location automatically? Thanks, Thom
... View more
07-23-2014
10:51 AM
|
0
|
7
|
686
|
POST
|
I followed LocationDisplayManager API, and it's still not working. My partial code is below LocationDisplayManager ldm = mMapView.getLocationDisplayManager(); ldm.setAutoPanMode(AutoPanMode.NAVIGATION ls.start(); What it does is even it shows the GPS moving, but the map doesn't stay focus (center) on the GPS, hence, the GPS will eventually move off the map. What I did to temporarily fix this is to implement LocationListener, onLocationChanged(Location loc) and have to set the map to zoom at location's longitude/latitude all the time, but performance wise is not very good. ldm = mMapView.getLocationDisplayManager(); ldm.setAutoPanMode(AutoPanMode.LOCATION); ldm.setLocationListener(new LocationListener(){ @Override public void onLocationChanged(Location loc) { if (loc == null) return; if (isMapFocus) { mapOption = new MapOptions(MapType.TOPO, loc.getLatitude(), loc.getLongitude(), 17); mMapView.setMapOptions(mapOption); } } }); Is there any sample that exactly does this? thanks a lot, Thom
... View more
07-23-2014
09:01 AM
|
0
|
9
|
686
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|