Skip to content

Defer events, separate draw modes #257

@tmcw

Description

@tmcw

https://github.com/mapbox/mapbox-gl-draw/blob/master/src/draw_events.js#L140

https://github.com/mapbox/mapbox-gl-draw/blob/master/src/draw_events.js#L5

An ideal architecture would let us separate draw modes so that the logic for each type of drawing is separate. Something like

  • There's a global click handler that does featuresAt
  • Each mode can subscribe to specific types of clicks and on specific features

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions