-
Hello. I'm trying to create an MVTLayer which would handle points as text labels or icons depending on a certain property of the feature. I'm using an auto packing strategy for icons (no iconAtlas, iconMapping). Here is an MVTLayer:
Text labels are rendered perfectly, but icons are not rendered at all. As I can see in a browser Network tab, icon files are loaded successfully but still invisible. What's wrong with my approach? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved. getIconSize also must be set because it defaults to 1 and icons seem to be too tiny. |
Beta Was this translation helpful? Give feedback.
Solved.
getIconSize also must be set because it defaults to 1 and icons seem to be too tiny.
After setting getIconSize to the value of image height everything works fine.