React-mapbox-gl: map blink when center of map change(movingMethod Not working)

Created on 1 Feb 2018  路  4Comments  路  Source: alex3165/react-mapbox-gl

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.

Most helpful comment

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

All 4 comments

I found this problem too.

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

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.

Thank @alex3165, My problem was solved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loverdeveloper picture loverdeveloper  路  3Comments

13milliseconds picture 13milliseconds  路  4Comments

jonheslop picture jonheslop  路  4Comments

kolharsam picture kolharsam  路  4Comments

rofrol picture rofrol  路  4Comments