高德地图添加Markers不显示的问题


可能原因是先addMarkersToMap,后moveCamera。
应改为

aMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(loc.getLatitude() + 0.002, loc.getLongitude()), 16));
                    aMap.setMapTextZIndex(2);
                    //先moveCamera,后addMarkersToMap
                    LatLng l = new LatLng(loc.getLatitude(), loc.getLongitude());
                    aMap.clear();
                    addMarkersToMap(l);

你可能感兴趣的:(高德地图添加Markers不显示的问题)