Closed belopot closed 3 years ago
@belopot , thanks for the issue.
Can you please share your geoJson so I can try locally?
Thank you. Here you go https://drive.google.com/file/d/1apQRPO1DFMB4dx4ewC7haVT-4EdFJRA8/view?usp=sharing
I shared the project (React app) https://drive.google.com/file/d/1hGWuuXxXfaMOHHebvflBXFqFAqEPAT9g/view?usp=sharing
This seems to be the problem... however you have explicitly set the decoder, so I don't know why it is requesting the decoder.bundle.js
, will take a further look.
Consider to look at: https://github.com/slaylines/harp.gl-react-example in the mean time.
Hmm, your GeoJsonDataProvider seems to need the web worker, because it needs to tile the geojson, see: https://github.com/heremaps/harp.gl/blob/79554faa5d650357068c951e022f386314e38de7/@here/harp-vectortile-datasource/lib/GeoJsonDataProvider.ts#L65
Which explains why it tries to request the decoder.bundle.js
, see the other react harp.gl app.
Thank you @nzjony
This issue was resolved by the harp.gl-react-example
Ok, I'll close this issue then, but feel free to open it again if you need to.
Hi,
I got the issue GeoJsonDataSource doesn't connect to mapView. I'm using harp.gl - 0.26.0 and react app. My code to add geoJson is following as:
This is the error
Please let me know how to fix the issue
Thank you