Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Grid Layout example throws OL #36 error - "Unknown SRS type. Expected "name" or "EPSG"." #39

Open
juergenhah opened this issue Jan 27, 2020 · 1 comment

Comments

@juergenhah
Copy link

I'm running the workshop and at step: http://localhost:4000/feature-grid/prepare-layout.html
the following code has to be inserted loading the file in GeoJSON format.
var vectorLayer = new ol.layer.Vector({ source: new ol.source.Vector({ url: 'data/aimag-centers.json', format: new ol.format.GeoJSON() }), name: 'Aimag', style: redStyle });
This does not work and OpenLayers throws OL Error 36. This is with OpenLayers version 4.6.5.

The error can be removed by removing following lines from the aimag-centers.json file:

, "crs":{ "type":"EPSG", "properties":{ "code":"4326" } }

@marcjansen
Copy link
Member

Ouch, I must have missed the notification for this issue last year, sorry.

We hope to give the workshop another look soon, and maybe also update it. I Hope this will also fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants