React-native-maps: re-rendering Polygons issue

Created on 9 Feb 2019  路  1Comment  路  Source: react-native-maps/react-native-maps

Is this a bug report?

No

Have you read the Installation Instructions?

Yes

Environment

react-native: 0.58.4
react: 16.3.3
react-native-maps:0.23.0

Steps to Reproduce

(Write your steps here:)

1.While rendering polygons ,the polygons are shown perfectly on MapView.
2.But when the polygons are rendered rendered using some if conditions,they render perfectly for the first time if the condition is met but for further matches ,they show strange behavior.
3.Some times the polygons from previous conditions get rendered even though they shoul'nt.
4.some Polygons that meet new if else conditions render while some dont.

Following screen shots are for the same conditions.In first one the polygonbs render properly.

screen shot 2019-02-09 at 11 46 30 am
screen shot 2019-02-09 at 11 47 09 am

Most helpful comment

how are you rendering the polygons? Try to give them uniq keys every time you render them. This should force the map to redraw them.

>All comments

how are you rendering the polygons? Try to give them uniq keys every time you render them. This should force the map to redraw them.

Was this page helpful?
0 / 5 - 0 ratings