Skip to content

Commit

Permalink
Fix Android's zIndex SymbolOption (#312)
Browse files Browse the repository at this point in the history
Before this commit, passing the `zIndex` SymbolOption would be inert as
the android implementation thought this option was called
'symbolSortKey'. This commit corrects that so that the Android zIndex
implementation works again.
  • Loading branch information
Nick Ray authored Jun 8, 2020
1 parent fbb2807 commit e97051b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/mapbox/mapboxgl/Convert.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static void interpretSymbolOptions(Object o, SymbolOptionsSink sink) {
if (geometry != null) {
sink.setGeometry(toLatLng(geometry));
}
final Object symbolSortKey = data.get("symbolSortKey");
final Object symbolSortKey = data.get("zIndex");
if (symbolSortKey != null) {
sink.setSymbolSortKey(toFloat(symbolSortKey));
}
Expand Down

0 comments on commit e97051b

Please sign in to comment.