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.
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.