Skip to content

Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer #5467

Answered by HarelM
flof asked this question in Q&A
Discussion options

You must be logged in to vote

The following code is where this warning is coming from:

warnOnce('Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer');

So, I'm guessing this is a limitation that is not documented.
In general, it is possible to mix SDF and non SDF icons, but looking at where this warning is written (code wise) it looks like doing so for the same tile won't work.
You can use different sources I guess and mix non DSF and SDF icons, I know I'm doing it using a regular tile source for nonSDF icons and a geojson source for a SDF icon.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@flof
Comment options

Answer selected by flof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants