如何使用openstreetmap获取我的职位

时间:2017-01-06 09:16:25

标签: android openstreetmap

这是我获得职位的代码:

IMyLocationProvider ilp = new IMyLocationProvider() {
        @Override
        public void stopLocationProvider() {
        }
        @Override
        public boolean startLocationProvider(IMyLocationConsumer arg0) {
            return false;
        }
        @Override
        public Location getLastKnownLocation() {
            return null;
        }
    };
MyLocationNewOverlay myLocationOverlay = new MyLocationNewOverlay(getApplicationContext(), ilp,mMapView);
mMapView.getOverlays().add(myLocationOverlay);
myLocationOverlay.enableMyLocation(ilp);
myLocationOverlay.enableFollowLocation();

但结果是屏幕变蓝了没有地图,哪里出错了?

enter image description here

0 个答案:

没有答案