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
No ol/layer/WebGLPoints found in the packaged code #11735
Comments
It should be fixed by #11715 |
Please don't use the above URLs directly in your applications. If you really need them, download and host them locally. |
I also had this issue when using the packaged code for the workshop, and received the error:
|
The workshop uses the ol package, so this is probably an unrelated issue. |
I cannot judge whether this is an unrelated issue, but I solved it by changing the import line. from: import {WebGLPoints as WebGLPointsLayer} from 'ol/layer'; to: import WebGLPointsLayer from 'ol/layer/WebGLPoints'; It looks like the original import line creates an alias for a constructer that doesn't exist (anymore). However, the suggested alias is itself a valid constructer. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
You can use the source code
import WebGLPointsLayer from'ol/layer/WebGLPoints';
To use WebGLPointsLayer;
But WebGLPoints cannot be used in the packaged code
var vectorSource = new ol.source.Vector({
attributions:'NASA',
});
var wgl = new ol.layer.WebGLPoints({
style: style,
source: vectorSource,
disableHitDetection: true,
});
ol.layer.WebGLPoints is undefined.
But the export has been seen in src/ol/layer.js.
Why is this
The text was updated successfully, but these errors were encountered: