Library globals

Class globals . canvas . MapStructure . StyleableCacheable

View source

A class to mix styling and caching. Using the above helpers it
serializes style hashes.

Functions

draw

new

Construct an object. @param name Prefix to use for entries in the cache @param draw_func Function for the cache that will draw the symbol onto a group using the style parameters. @param cache The #SymbolCache to use for these symbols. @param draw_mode See #SymbolCache @param relevant_keys A list of keys for the style used by the draw_func. Although it defaults to all available keys, it is highly recommended that it be specified.

render

request

Note: configuration like active/inactive needs to also use the passed style hash, unless it is chosen not to cache symbols that are, e.g., active.