Skip to content

queryRenderedFeatures Exception: Cannot read property 'sub' of undefined #8999

Description

@cdhuangyong

mapbox-gl-js version:
1.5.0
browser:
chorme

Steps to Trigger Behavior

  1. Layer type: fill-extrusion
    source geometry type : MultiPolygon
  2. When I call the method “queryrenderedfeatures” to query features,Sometimes an error is reported, like the title

I found the rule that when the map level is relatively large, there will be no problem, while when the map level is relatively small, there will be some problems,I guess the simplification algorithm takes the length of the point less than 4

The location of the exception error:
(see: https://github.com/cdhuangyong/issues/blob/master/error20191120.png?raw=true)
projectedFace[3] Sometimes undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions