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
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:
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" } }
The text was updated successfully, but these errors were encountered: