Hello! I guess my problem is pretty simple I guess.
I want to display some polygons to define the neighbourhoods of Amsterdam.
To do this I use this block of code
dl.Map([
dl.TileLayer(),
html.Div(id = ‘geoJSON-2’),
dl.GeoJSON(url=“neighbours.geojson”, id=“neighbourhoods”),
], center=(4.9, 52.371), zoom=13, style={‘width’: ‘100%’, ‘height’: ‘80vh’, ‘margin’: “auto”, “display”: “block”}),
The map display but without the polygons.
I’ve already check that’s not latitude / longitude problems (I check at reversed GPS coordinates and I don’t fount my polygons neither
My file seems to be readable I tried to print it and it works
Do you have some idea where the problem could come from?
Many thanks
Tnecnivs
My file :
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "id": 0, "properties": { "name": "Burgwallen-Oude Zijde" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 4.895492032180276, 52.367518292844046 ], [ 4.895246533269752, 52.367566817799876 ], [ 4.894707275231997, 52.367259083355108 ], [ 4.894092041776886, 52.367321279055304 ], [ 4.892775618450123, 52.368419121145919 ], [ 4.892450955103008, 52.369072744737331 ], [ 4.893051943943746, 52.37217664450764 ], [ 4.892905995889044, 52.372300604974861 ], [ 4.892951363414091, 52.372722947056772 ], [ 4.893152803521489, 52.373200316027173 ], [ 4.896530782872414, 52.375722066437127 ], [ 4.897022706563314, 52.375499680936073 ], [ 4.899348875669522, 52.377188009854805 ], [ 4.901636829193176, 52.37729232386225 ], [ 4.902728000440081, 52.377076819378559 ], [ 4.903157185509098, 52.376754792818375 ], [ 4.902888086171139, 52.376396791105257 ], [ 4.902452168376638, 52.376226443141142 ], [ 4.90123313917678, 52.374180384920891 ], [ 4.900917477297648, 52.373578485794063 ], [ 4.900737231610852, 52.373149166796516 ], [ 4.901039079201679, 52.373095042269966 ], [ 4.900433371387384, 52.372061888744497 ], [ 4.899863427984754, 52.372186585534322 ], [ 4.898713692355606, 52.370982618011674 ], [ 4.895492032180276, 52.367518292844046 ] ] ] } }