Skip to content

Commit

Permalink
fix feature mamager on release build (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea689 authored Apr 12, 2021
1 parent 9ee6d31 commit 16bf53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapbox_gl_web/lib/src/feature_manager/feature_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ abstract class FeatureManager<T> {
void _initClickHandler() {
map.on('click', (e) {
if (e is Event) {
final features = map.queryRenderedFeatures([e.point, e.point]);
if (features[0].source == sourceId) {
final features = map.queryRenderedFeatures([e.point.x, e.point.y]);
if (features.length > 0 && features[0].source == sourceId) {
if (onTap != null) {
onTap('${features[0].id}');
}
Expand Down

0 comments on commit 16bf53b

Please sign in to comment.