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

Use default marker icon #1353

Merged
merged 3 commits into from
May 28, 2020
Merged
Changes from 1 commit
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 @@ -23,7 +23,6 @@
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.iconAllowOverlap;
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.iconIgnorePlacement;
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.iconImage;
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.iconOffset;

/**
* Display {@link SymbolLayer} icons on the map.
Expand Down Expand Up @@ -67,7 +66,7 @@ public void onMapReady(@NonNull final MapboxMap mapboxMap) {

// Add the SymbolLayer icon image to the map style
.withImage(ICON_ID, BitmapFactory.decodeResource(
BasicSymbolLayerActivity.this.getResources(), R.drawable.red_marker))
BasicSymbolLayerActivity.this.getResources(), R.drawable.mapbox_marker_icon_default))

// Adding a GeoJson source for the SymbolLayer icons.
.withSource(new GeoJsonSource(SOURCE_ID,
Expand All @@ -82,7 +81,6 @@ public void onMapReady(@NonNull final MapboxMap mapboxMap) {
iconImage(ICON_ID),
iconAllowOverlap(true),
iconIgnorePlacement(true),
colleenmcginnis marked this conversation as resolved.
Show resolved Hide resolved
iconOffset(new Float[] {0f, -9f}))
), new Style.OnStyleLoaded() {
@Override
public void onStyleLoaded(@NonNull Style style) {
Expand Down