SilverBlue
SilverBlue

Reputation: 269

Add a CompassOverlay and get errors

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

Answers (1)

SilverBlue
SilverBlue

Reputation: 269

resolved:

CompassOverlay mCompassOverlay = new CompassOverlay(this, new InternalCompassOrientationProvider(this), map);
mCompassOverlay.enableCompass();
map.getOverlays().add(mCompassOverlay);

Upvotes: 1

Related Questions