diff --git a/api/android-for-maplibre.api b/api/android-for-maplibre.api index 615f598..3db8253 100644 --- a/api/android-for-maplibre.api +++ b/api/android-for-maplibre.api @@ -459,7 +459,6 @@ public final class com.mapconductor.maplibre.raster.MapLibreRasterLayerControlle public java.lang.Object update(com.mapconductor.core.raster.RasterLayerState, kotlin.coroutines.Continuation); public java.lang.Object clear(kotlin.coroutines.Continuation); public void destroy(); - public final java.lang.Object reapplyStyle(kotlin.coroutines.Continuation); public java.lang.Object update(java.lang.Object, kotlin.coroutines.Continuation); } public final class com.mapconductor.maplibre.raster.MapLibreRasterLayerHandle { diff --git a/src/main/java/com/mapconductor/maplibre/raster/MapLibreRasterLayerController.kt b/src/main/java/com/mapconductor/maplibre/raster/MapLibreRasterLayerController.kt index d45e4b4..14dc737 100644 --- a/src/main/java/com/mapconductor/maplibre/raster/MapLibreRasterLayerController.kt +++ b/src/main/java/com/mapconductor/maplibre/raster/MapLibreRasterLayerController.kt @@ -1,10 +1,8 @@ package com.mapconductor.maplibre.raster import com.mapconductor.core.raster.RasterLayerController -import com.mapconductor.core.raster.RasterLayerEntity import com.mapconductor.core.raster.RasterLayerManager import com.mapconductor.core.raster.RasterLayerManagerInterface -import com.mapconductor.core.raster.RasterLayerOverlayRendererInterface import com.mapconductor.core.raster.RasterLayerState class MapLibreRasterLayerController( @@ -35,27 +33,4 @@ class MapLibreRasterLayerController( MapLibreRasterHeaderInjector.remove(this) super.destroy() } - - suspend fun reapplyStyle() { - val states = rasterLayerManager.allEntities().map { it.state } - if (states.isEmpty()) return - val addParams = - states.map { state -> - object : RasterLayerOverlayRendererInterface.AddParamsInterface { - override val state: RasterLayerState = state - } - } - val layers = renderer.onAdd(addParams) - layers.forEachIndexed { index, layer -> - layer?.let { - rasterLayerManager.registerEntity( - RasterLayerEntity( - layer = it, - state = states[index], - ), - ) - } - } - renderer.onPostProcess() - } }