setMapStyleWithId abstract method

bool setMapStyleWithId({
  1. required int id,
  2. required String style,
})

Applies JSON style transformations to the map. Replaces previous styling with the specified ID (if such exists). Stylings are applied in an ascending order. Affects VectorMap and Hybrid map types. Set to empty string to clear previous styling with the specified ID. Returns true if the style was successfully parsed, and false otherwise. If the returned value is false, the current map style remains unchanged.

Implementation

core.bool setMapStyleWithId({
  required core.int id,
  required core.String style,
});