AlpacaTravel / react-map-gl-alt

React Mapbox-GL-JS binding with improved performance, event and API exposure
Other
42 stars 2 forks source link

onChangeViewport update start LngLat props #1

Open cammanderson opened 8 years ago

cammanderson commented 8 years ago

The onChangeViewport convenience method exposes a number of additional properties relating to when certain events start/finish. These include move, drag, zoom, touch such as startZoomLngLat etc.

The internal events in mapbox are not exposing the LngLat position and they are not being passed to the onChangeViewport action.

An update is required to expose these properties based on the initial 'start' event and project the event target position.