I'm currently loading a simple GeoJSON with Polygon and MultiPolygon type, countries that are of type Polygon work fine and are rendered always correctly, only having problem with MultiPolygon countries...
The coordinates are closed (the first location is always also the last) so there should be no issue with that:
Version:
mapbox_gl: ^0.16.0
I'm currently loading a simple GeoJSON with Polygon and MultiPolygon type, countries that are of type Polygon work fine and are rendered always correctly, only having problem with MultiPolygon countries...
The coordinates are closed (the first location is always also the last) so there should be no issue with that:
This is how it looks zoomed out:
This is how it looks zoomed in:
Example Feature JSON:
{ "type": "Feature", "properties": { "admin": "France", "name": "France", "continent": "Europe" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -52.556424730018378, 2.504705308437053 ], [ -52.939657151894963, 2.124857692875622 ], [ -53.41846513529525, 2.053389187016037 ], [ -53.554839240113481, 2.334896551925964 ], [ -53.778520677288881, 2.376702785650053 ], [ -54.088062506717264, 2.105556545414629 ], [ -54.524754197799737, 2.311848863123785 ], [ -54.271229620975781, 2.738747870286942 ], [ -54.184284023644743, 3.194172268075234 ], [ -54.011503872276812, 3.622569891774857 ], [ -54.3995422023565, 4.212611395683481 ], [ -54.478632981979203, 4.896755682795642 ], [ -53.958044603070917, 5.756548163267808 ], [ -53.618452928264837, 5.646529038918401 ], [ -52.882141282754063, 5.409850979021598 ], [ -51.823342861525916, 4.565768133966144 ], [ -51.657797410678874, 4.156232408053028 ], [ -52.249337531123977, 3.241094468596287 ], [ -52.556424730018378, 2.504705308437053 ] ] ], [ [ [ 9.560016310269132, 42.152491970379558 ], [ 9.229752231491771, 41.380006822264441 ], [ 8.77572309737536, 41.583611965494427 ], [ 8.544212680707828, 42.256516628583078 ], [ 8.746009148807586, 42.628121853193946 ], [ 9.390000848028901, 43.009984849614725 ], [ 9.560016310269132, 42.152491970379558 ] ] ], [ [ [ 3.588184441755714, 50.378992418003563 ], [ 4.28602298342514, 49.90749664977254 ], [ 4.799221632515752, 49.985373033236314 ], [ 5.674051954784885, 49.529483547557433 ], [ 5.897759230176375, 49.442667141307155 ], [ 6.186320428094204, 49.463802802114444 ], [ 6.658229607783538, 49.201958319691549 ], [ 8.09927859867477, 49.017783515003366 ], [ 7.59367638513106, 48.333019110703724 ], [ 7.466759067422228, 47.620581976911851 ], [ 7.192202182655533, 47.449765529970982 ], [ 6.736571079138086, 47.541801255882874 ], [ 6.768713820023634, 47.287708238303672 ], [ 6.037388950228971, 46.725778713561894 ], [ 6.022609490593566, 46.272989813820502 ], [ 6.500099724970453, 46.429672756529428 ], [ 6.84359297041456, 45.991146552100659 ], [ 6.80235517744566, 45.708579820328673 ], [ 7.096652459347835, 45.333098863295859 ], [ 6.749955275101711, 45.028517971367584 ], [ 7.007562290076661, 44.254766750661382 ], [ 7.549596388386161, 44.127901109384808 ], [ 7.435184767291841, 43.693844916349164 ], [ 6.529245232783068, 43.12889232031835 ], [ 4.556962517931395, 43.399650987311581 ], [ 3.100410597352719, 43.075200507167118 ], [ 2.985998976258486, 42.473015041669882 ], [ 1.826793247087181, 42.343384711265649 ], [ 0.701590610363922, 42.795734361332642 ], [ 0.338046909190581, 42.57954600683955 ], [ -1.502770961910471, 43.034014390630482 ], [ -1.901351284177735, 43.422802028978332 ], [ -1.384225226232956, 44.022610378590166 ], [ -1.193797573237361, 46.014917710954862 ], [ -2.225724249673788, 47.064362697938201 ], [ -2.963276129559573, 47.570326646507958 ], [ -4.491554938159481, 47.95495433205641 ], [ -4.592349819344746, 48.68416046812694 ], [ -3.295813971357745, 48.901692409859628 ], [ -1.616510789384932, 48.644421291694577 ], [ -1.933494025063254, 49.776341864615759 ], [ -0.98946895995536, 49.347375800160869 ], [ 1.338761020522753, 50.127173163445256 ], [ 1.6390010921385, 50.9466063502975 ], [ 2.51357303224617, 51.14850617126185 ], [ 2.65842207196033, 50.796848049515646 ], [ 3.123251580425716, 50.780363267614504 ], [ 3.588184441755714, 50.378992418003563 ] ] ] ] } }