Closed wingkingbobo closed 3 years ago
Platform: Mapbox SDK version:
1. 2. 3.
I want to add multiple pictures to the same layer. Instead of creating a new layer every time you add a picture. This can reduce the performance overhead.
String layerId = "test-layer"; String sourceId = "test-source"; LatLngQuad latLngQuad = getLatLngQuad(103.57, 31.17, 104.57, 30.17); ImageSource source = new ImageSource(sourceId, latLngQuad, R.drawable.ic_main_3d); style.addSource(source); RasterLayer layer = new RasterLayer(layerId, sourceId); style.addLayer(layer);
Platform: Mapbox SDK version:
Steps to trigger behavior
1. 2. 3.
Expected behavior
I want to add multiple pictures to the same layer. Instead of creating a new layer every time you add a picture. This can reduce the performance overhead.
Actual behavior