React-mapbox-gl: Offsets not working on array when non-zero

Created on 26 Jan 2017  路  1Comment  路  Source: alex3165/react-mapbox-gl

Markers/Popups (haven't tested other objects) don't offset with an array parameter if one of the values is 0

Non-working offset

<Marker
  offset={[0, -7]}
  coordinates={[x, y]}
>

Working offset

<Marker
  offset={[0.01, -7]}
  coordinates={[x, y]}
>

I have to resort to using a close to 0 number to achieve offset.

Bug Priority +

Most helpful comment

Hey @iop280 sorry for the late reply, this should be fixed with https://github.com/alex3165/react-mapbox-gl/commit/bc275652794956f51d9fb77fbc6c1997569f965c 馃憤 thanks for reporting the issue

>All comments

Hey @iop280 sorry for the late reply, this should be fixed with https://github.com/alex3165/react-mapbox-gl/commit/bc275652794956f51d9fb77fbc6c1997569f965c 馃憤 thanks for reporting the issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kn0ll picture kn0ll  路  3Comments

DaveBathnes picture DaveBathnes  路  3Comments

spybaby1 picture spybaby1  路  4Comments

stereobooster picture stereobooster  路  4Comments

appjitsu picture appjitsu  路  3Comments