mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
fix disappearing marker
This commit is contained in:
@@ -345,8 +345,7 @@ public class MapDataManager implements DcEventCenter.DcEventDelegate, GenerateIn
|
||||
private void initInfoWindowLayer() {
|
||||
Expression iconOffset = switchCase(
|
||||
toBool(get(LAST_LOCATION)), literal(new Float[] {-2f, -25f}),
|
||||
neq(length(get(MARKER_CHAR)), literal(0)), literal(new Float[] {-2f, -20f}),
|
||||
literal(new Float[] {-2f, -15f}));
|
||||
literal(new Float[] {-2f, -20f}));
|
||||
GeoJsonSource infoWindowSource = new GeoJsonSource(INFO_WINDOW_SRC);
|
||||
mapboxStyle.addSource(infoWindowSource);
|
||||
mapboxStyle.addLayer(new SymbolLayer(INFO_WINDOW_LAYER, INFO_WINDOW_SRC).withProperties(
|
||||
|
||||
Reference in New Issue
Block a user