-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Labels
location-layer-pluginIssues that deal with the location layer moduleIssues that deal with the location layer module
Milestone
Description
@RequiresPermission(anyOf = {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION})
public void setLocationLayerEnabled(@LocationLayerMode.Mode int locationLayerMode) {
if (locationLayerMode != LocationLayerMode.NONE) {
locationLayer.setLayerVisibility(true);
// Set an initial location if one is available and the locationEngines not null
if (locationEngine != null) {
setLastLocation();
locationEngine.addLocationEngineListener(this);
}
if (locationLayerMode == LocationLayerMode.COMPASS) {
setLinearAnimation(false);
setNavigationEnabled(false);
setMyBearingEnabled(true);
} else if (locationLayerMode == LocationLayerMode.NAVIGATION) {
setMyBearingEnabled(false);
setNavigationEnabled(true);
} else if (locationLayerMode == LocationLayerMode.TRACKING) {
setLinearAnimation(false);
setMyBearingEnabled(false);
setNavigationEnabled(false);
}
} else {
// Check that the mode isn't already none
if (this.locationLayerMode != LocationLayerMode.NONE) {
disableLocationLayerPlugin();
}
}
this.locationLayerMode = locationLayerMode;
}
Please enable any customisation on these methods since you depricated everything should be the time to update everything.... There is currently no good way to update user location icon.
Solution: some methods that we can do that and enable the structure of the code
Solution2: Requested seems like there is something wrong with that plugin and there is no location tracking what so ever. On never devices and old one is depricated
Metadata
Metadata
Assignees
Labels
location-layer-pluginIssues that deal with the location layer moduleIssues that deal with the location layer module