MVTLayer icon not showing without iconSizeMinPixels property #9368
Answered
by
finico
dhruv4kubra
asked this question in
Q&A
-
Hi I am trying to use MVT layer, but it doesnt show the icons on the map, without supplying the I can see it download the icon, but nothing shows on the map.
|
Beta Was this translation helpful? Give feedback.
Answered by
finico
Jan 24, 2025
Replies: 1 comment
-
https://deck.gl/docs/api-reference/layers/geojson-layer#pointtypeicon-options |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Pessimistress
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://deck.gl/docs/api-reference/layers/geojson-layer#pointtypeicon-options
according to docs, by default it uses
getIconSize: 1
andiconSizeUnits: 'pixels'
you need to provide an
getIconSize
accessor as number or function