Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Tweaks to SymbolLayer iconOffset spacing in InfoWindowSymbolLayerActivity #1016

Merged
merged 1 commit into from
Apr 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ private void setUpMarkerLayer(@NonNull Style loadedStyle) {
loadedStyle.addLayer(new SymbolLayer(MARKER_LAYER_ID, GEOJSON_SOURCE_ID)
.withProperties(
iconImage(MARKER_IMAGE_ID),
iconAllowOverlap(true)
iconAllowOverlap(true),
iconOffset(new Float[] {0f, -8f})
));
}

Expand All @@ -168,7 +169,7 @@ private void setUpInfoWindowLayer(@NonNull Style loadedStyle) {
iconAllowOverlap(true),

/* offset the info window to be above the marker */
iconOffset(new Float[] {-2f, -25f})
iconOffset(new Float[] {-2f, -28f})
)
/* add a filter to show only when selected feature property is true */
.withFilter(eq((get(PROPERTY_SELECTED)), literal(true))));
Expand Down