Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Error : geoJSONObject is undefined #315

@geektortoise

Description

@geektortoise

Hello,

I don't know how much my problem is related to #302 so I create a new one.
In the Cytomine project, we are using your vuelayers project.

When using vuelayers with the version 0.11.22, I got a problem to display features. The features are displayed but I got an error in the browser console. You will find the stacktraces below.

I don't have this error with vuelayers 0.11.4, so I tested with different version and

  • I got the problem with version 0.11.7
  • I cannot test version 0.11.5 or 0.11.6 due to problem upgrading to 0.11.5 #236
  • I still have the problem with the version 0.11.23

Stacktraces :
In Firefox :
Unhandled promise rejection
TypeError: geoJSONObject is undefined
Stack trace:
readFeaturesFromObject@webpack-internal:///./node_modules/ol/format/GeoJSON.js:151:1
readFeatures@webpack-internal:///./node_modules/ol/format/JSONFeature.js:60:12
readSourceData@webpack-internal:///./node_modules/vuelayers/lib/vector-source/index.js:240:14
_callee$@webpack-internal:///./node_modules/vuelayers/lib/vector-source/index.js:163:32
...

In Chrome :
GeoJSON.js?a2e1:136 Uncaught (in promise) TypeError: Cannot read property 'type' of undefined
at GeoJSON.readFeaturesFromObject (GeoJSON.js?a2e1:136)
at GeoJSON.readFeatures (JSONFeature.js?377d:56)
at VueComponent.readSourceData (index.js?69ad:201)

Have a nice day !
Let me know if I can make some test to identify the origin of this problem.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions