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

Commit

Permalink
tweaks to SymbolLayer icon offset spacing (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
Langston Smith authored Apr 15, 2019
1 parent ea7824e commit 08be550
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 08be550

Please sign in to comment.