public DefaultRasterLayerStore(RasterLayer rasterLayer) {
this.rasterLayer = rasterLayer;
}
public void applyAndSync(Bbox bounds, TileFunction<RasterTile> onDelete, TileFunction<RasterTile> onUpdate) {
MapViewState viewState = rasterLayer.getMapModel().getMapView().getViewState();
boolean panning = lastViewState == null || viewState.isPannableFrom(lastViewState);
if (!panning || isDirty()) {
if (deferred != null) {
deferred.cancel();
}
for (RasterTile tile : tiles.values()) {