When I run the demo (after setting maptilerApiKey in local.properties), the vast majority of the samples in the sample app fail with this exception:
FATAL EXCEPTION: main
Process: org.maplibre.android.plugins.testapp, PID: 14496
java.lang.IllegalArgumentException: Could not find layer Streets
at org.maplibre.android.maps.Style.getPredefinedStyle(Style.java:1430)
at org.maplibre.android.plugins.testapp.activity.annotation.CircleActivity.lambda$onCreate$4$org-maplibre-android-plugins-testapp-activity-annotation-CircleActivity(CircleActivity.java:48)
at org.maplibre.android.plugins.testapp.activity.annotation.CircleActivity$$ExternalSyntheticLambda4.onMapReady(Unknown Source:4)
at org.maplibre.android.maps.MapView$MapCallback.onMapReady(MapView.java:1324)
many of the demos work, (though others crash still with the same exception with layer Outdoors instead of Streets). Is there any piece of setup I am missing here?
Also, is mapbox_access_token actually used? I set it, but I don't see anything in the code that reads it (neither in this repo nor in maplibre-native, minus some of their sample code).
When I run the demo (after setting
maptilerApiKey
inlocal.properties
), the vast majority of the samples in the sample app fail with this exception:if I instead edit
PluginApplication
and update:to
many of the demos work, (though others crash still with the same exception with layer
Outdoors
instead ofStreets
). Is there any piece of setup I am missing here?Also, is
mapbox_access_token
actually used? I set it, but I don't see anything in the code that reads it (neither in this repo nor in maplibre-native, minus some of their sample code).Thanks!