Skip to content

Commit

Permalink
features with non string ids will not update properly (flutter-mapbox…
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ht authored Mar 25, 2022
1 parent 256b5aa commit a36db4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Classes/MapboxMapController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,10 @@ class MapboxMapController: NSObject, FlutterPlatformView, MGLMapViewDelegate, Ma
if let id = $0.identifier as? String,
let featureId = feature.identifier as? String
{ return id == featureId }

if let id = $0.identifier as? NSNumber,
let featureId = feature.identifier as? NSNumber
{ return id == featureId }
return false
})
{
Expand Down

0 comments on commit a36db4a

Please sign in to comment.