react-mapbox-gl icon indicating copy to clipboard operation
react-mapbox-gl copied to clipboard

map blink when center of map change(movingMethod Not working)

Open spybaby1 opened this issue 8 years ago • 4 comments

Hi!!! I'm try to update version of react-mapbox-gl from v2 to v3 but i found a problem when props that store center location was changed but every change of this state map is blink everytime that not apply with movingMethod props.

spybaby1 avatar Feb 01 '18 04:02 spybaby1

I found this problem too.

nontachaiwebdev avatar Feb 01 '18 15:02 nontachaiwebdev

Did you make sure you don't call the map factory in the render method of your react component: https://github.com/alex3165/react-mapbox-gl/blob/master/example/src/demos/londonCycle.tsx#L11

alex3165 avatar Feb 05 '18 08:02 alex3165

I will close this issue in favour of https://github.com/alex3165/react-mapbox-gl/issues/534 . @spybaby1 if you think this is not your problem, please open a new Github issue including your problem reproduced with the webpackbin template in the readme.

alex3165 avatar Feb 13 '18 13:02 alex3165

Thank @alex3165, My problem was solved.

spybaby1 avatar Feb 14 '18 03:02 spybaby1