You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to show a local Geojson Layer in my map but it doesn't work.
I'm using Vue.js 2.x and the geojson file is in an "asset" folder inside the Vue project.
I tried the code below:
Are you sure the source is correctly added? If not, use the map.getSource(sourceId) method to verify this. This is the first thing I would check in tha case
Thanks for your answer !
I listened to your tip and used the getSource method: the source seems to be corretly added.
I just have this warning message:
Well, that warning message reflects some kind of error, but I am not sure about what to do. Do something, replace the path data of myLayerSource and just initialize the data object directly with the content of ../assets/path_to_my_layer/myLayer.geojson file. Take a look it the warning keep showing, I hope this could help you
Hello, I'm trying to show a local Geojson Layer in my map but it doesn't work.
I'm using Vue.js 2.x and the geojson file is in an "asset" folder inside the Vue project.
I tried the code below:
Does anybody has the same issue ?
The text was updated successfully, but these errors were encountered: