how to read geojson file from resources folder in js snippet?

0
hi team ,  i have added building.geojson in the resources folder like this -     now i want to get this file in my js snippet -        how i can define the path ? i use like this -    but not working
asked
3 answers
0

That looks like you've put it in your fonts directory. Try moving the building.geojson up a level.

 

Good luck!

answered
0

hi robert , thanks for help ..

 

Actually i have check , my building.json file is in the resources folder only not inside the font folder . And when i am trying  delete the font folder then i am able to get data from building.json in my js snippet .

 

but i want to keep the font folder also . its not working when i have place both the files in the resource folder 

 

image.png

answered
0

It looks like you have put the building.json in the Atlas Core module. That is a standard marketplace module so you could loose your file if you update.

 

I would suggest creating a new module and mark it as a UI Resources module. Move your building.json file to the new module. It may also be worth giving it a more distinct name incase it is clashing with another file.

answered