[android] - don't load default style if style json string was set (#11520)
This commit is contained in:
@@ -103,7 +103,7 @@ public final class MapboxMap {
|
||||
*/
|
||||
void onStart() {
|
||||
nativeMapView.update();
|
||||
if (TextUtils.isEmpty(nativeMapView.getStyleUrl())) {
|
||||
if (TextUtils.isEmpty(nativeMapView.getStyleUrl()) && TextUtils.isEmpty(nativeMapView.getStyleJson())) {
|
||||
// if user hasn't loaded a Style yet
|
||||
nativeMapView.setStyleUrl(Style.MAPBOX_STREETS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user