Canvas MapStructure: Difference between revisions

Jump to navigation Jump to search
m
Line 804: Line 804:
me.icon_vor = cache.render(me.element, me.style).setScale(me.style.scale_factor);
me.icon_vor = cache.render(me.element, me.style).setScale(me.style.scale_factor);
</syntaxhighlight>
</syntaxhighlight>
What is happening here is that the cache entry is looked up for the selected style using '''me.style''', the textured quad (sub-texture) is dynamically retrieved from the SymbolCache and rendered into the canvas group specified via '''me.element''' - finally, scaling is applied to the raster image.


Another example can be seen in FIX.symbol
Another example can be seen in FIX.symbol

Navigation menu