Dear @SteveJG ,
thanks for nice tutorial and let me wish you a happy New Year !
Can you suggest what options do I have to load attached relation geojson onto my map in AI application?
I'd prefer simple import but MapCollectionFeature.FeaturesFromGeoJSON fails. Alternativelly I may try to manually convert it to
or shall I manually convert it to FeatureCollection having just Markers and poligons similar to one that you used in your map Example part 1 (although it will be complex especially with outside/inside) . Of course I'm looking for simple and "the right way" to do it.
Best regards,
Kuba
{
"version": 0.6,
"generator": "Overpass API 0.7.59 e21c39fe",
"osm3s": {
"timestamp_osm_base": "2023-01-01T15:12:25Z",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
},
"elements": [
{
"type": "relation",
"id": 6297631,
"members": [
{
"type": "way",
"ref": 423712604,
"role": "outer"
},
{
"type": "way",
"ref": 423720613,
"role": "outer"
}
],
"tags": {
"boundary": "protected_area",
"gid": "110525",
"kodinspire": "PL.ZIPOP.1393.UE.1424043.404",
"leisure": "nature_reserve",
"name": "użytek 423",
"protect_class": "19",
"protection_title": "Environmental use",
"protection_title:pl": "Użytek ekologiczny",
"source": "Generalna Dyrekcja Ochrony Środowiska",
"type": "multipolygon"
}
},
{
"type": "node",
"id": 4232717224,
"lat": 52.7031640,
"lon": 21.0409504
},
{
"type": "node",
"id": 4232717228,
"lat": 52.7032390,
"lon": 21.0415835
},
{
"type": "node",
"id": 4232717238,
"lat": 52.7033905,
"lon": 21.0407787
},
{
"type": "node",
"id": 4232717240,
"lat": 52.7034343,
"lon": 21.0408481
},
{
"type": "node",
"id": 4232717243,
"lat": 52.7034432,
"lon": 21.0417187
},
{
"type": "node",
"id": 4232717244,
"lat": 52.7034457,
"lon": 21.0393029
},
{
"type": "node",
"id": 4232717250,
"lat": 52.7034912,
"lon": 21.0389532
},
{
"type": "node",
"id": 4232717251,
"lat": 52.7035028,
"lon": 21.0401945
},
{
"type": "node",
"id": 4232717257,
"lat": 52.7035788,
"lon": 21.0395904
},
{
"type": "node",
"id": 4232717263,
"lat": 52.7036492,
"lon": 21.0386949
},
{
"type": "node",
"id": 4232717278,
"lat": 52.7036848,
"lon": 21.0401860
},
{
"type": "node",
"id": 4232717288,
"lat": 52.7037451,
"lon": 21.0396303
},
{
"type": "node",
"id": 4232717293,
"lat": 52.7037916,
"lon": 21.0388544
},
{
"type": "node",
"id": 4232717294,
"lat": 52.7037916,
"lon": 21.0388547
},
{
"type": "node",
"id": 4232717296,
"lat": 52.7038330,
"lon": 21.0392983
},
{
"type": "node",
"id": 4232717298,
"lat": 52.7038674,
"lon": 21.0400352
},
{
"type": "node",
"id": 4232717299,
"lat": 52.7038827,
"lon": 21.0398320
},
{
"type": "node",
"id": 4232717300,
"lat": 52.7039044,
"lon": 21.0400637
},
{
"type": "node",
"id": 4232717302,
"lat": 52.7039593,
"lon": 21.0406523
},
{
"type": "way",
"id": 423712604,
"nodes": [
4232717302,
4232717240,
4232717243,
4232717228,
4232717224,
4232717238,
4232717251,
4232717278,
4232717298,
4232717299,
4232717300,
4232717302
]
},
{
"type": "way",
"id": 423720613,
"nodes": [
4232717257,
4232717244,
4232717250,
4232717263,
4232717293,
4232717294,
4232717296,
4232717288,
4232717257
]
}
]
}