-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Having trouble with IconLayer pre-packed iconAtlas #4598
Comments
Run |
Hello. Thanks for the quick response! The project I'm working on uses npm. But I did try I'm looked through the source code a little, but didn't get far. Is there some avenue I can explore for debugging? Is it strange that auto-packing works but pre-packing does not? Thanks! |
I remember some old issues when building with Angular due to certain aggressive optimization. If it's possible to examine the compiled code, you can check if this line is called at all: deck.gl/modules/core/src/lib/init.js Line 59 in f65ac9c
|
Success! I didn't find I don't know if this was the best way to do it (maybe you can confirm), but I'm manually registering the loaders in my application code:
Thanks for the quick help! If this is my best option, we can close this ticket. :) |
Let's keep the ticket open for now. We should still figure out how to fix it properly with Angular, maybe there is a build config? |
@cooperrf Can you point me to a minimal setup that reproduces this issue? |
Hello,
I'm receiving this error when trying to create an icon layer with a pre-packed icon atlas:
Error: No valid loader found for data starting with "" for ./assets/map/marker-icon.png
I confirmed the png and json are loading. I'm seeing 200s for them in the network tab of the developer console.
My code looks like this:
I also tried an object for the icon mapping instead of a URL:
Still no luck.
Note that this layer is part of a suite of angular components I've built. Other layer types are working just fine (geojson, trips, arc, and hexagons).
Auto-packing does work as expected:
I've got this stuff in
package.json
:Here's the icon atlas and icon mapping files I'm trying to load:
assets.zip
Please help!
The text was updated successfully, but these errors were encountered: