Reputation: 269
I want to add a compassoverlay, but I get some errors:
this.mCompassOverlay = new CompassOverlay(context, new InternalCompassOrientationProvider(context), mMapView);
mMapView.getOverlays().add(this.mCompassOverlay);
Can not resolve Symbol 'mCompassOverlay' and Can not resolve Symbol 'context'
Where I get the "Symbols"?
Upvotes: 0
Views: 55
Reputation: 269
resolved:
CompassOverlay mCompassOverlay = new CompassOverlay(this, new InternalCompassOrientationProvider(this), map);
mCompassOverlay.enableCompass();
map.getOverlays().add(mCompassOverlay);
Upvotes: 1