Class: StyleManager

StyleManager

Manages the styles for the GoTruckLayer, including applying styles, handling feature selection, and updating truck routes. Refactored following SOLID principles and Strategy pattern.

new StyleManager()

Layers/GoTruckLayer/src/StyleManager.ts, line 256

Methods

clearRouteLayer(){void}

Layers/GoTruckLayer/src/StyleManager.ts, line 328

Clears the route layer on the staging map.

Returns:
Type Description
void

setIcons(){types.styleSVG}

Layers/GoTruckLayer/src/StyleManager.ts, line 316

Sets the icons for the trucks based on the provided SVG styles. Returns a promise resolving with the computed SVG style.

Returns:
Type Description
types.styleSVG SVG style for the truck icons.