onlylemi / MapView

A MapView on Android platform.
MIT License
678 stars 162 forks source link

MapView.refresh() is not working. #10

Open krishnag1-damco opened 8 years ago

krishnag1-damco commented 8 years ago

I copied the whole code from BitmapLayerTestActivity from example project, I am using IndoorAtlas for indoor positioning inside the onLocationChanged i am using the below code

Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher); IALatLng latLng = new IALatLng(iaLocation.getLatitude(), iaLocation.getLongitude()); PointF point = mFloorPlan.coordinateToPoint(latLng); mBitmapLayer = new BitmapLayer(mMapView, bmp); mBitmapLayer.setLocation(point); mBitmapLayer.setOnBitmapClickListener(new BitmapLayer.OnBitmapClickListener() { @Override public void onBitmapClick(BitmapLayer layer) { Toast.makeText(getApplicationContext(), "click", Toast.LENGTH_SHORT).show(); } }); mMapView.addLayer(mBitmapLayer); mMapView.refresh();

but refresh is not working. Everytime icon is rendering on map.

krishnag1-damco commented 8 years ago

Also, if I am rotating using compass UI is become not responding. UI got hanged and finally app crashed.