setFlat abstract method

bool setFlat(
  1. bool flat
)

Method is used to specify whether the icon is flat or billboarded. flat If true, the icon aligns with the location view surface; if false, it maintains orientation to the screen surface. Default: false. Returns true if the operation is successful, false otherwise.

Example:

// Set icon flat mode
bool flatSuccess = _iconMapObject!.setFlat(true);
print("Set icon flat mode to true: $flatSuccess");

Implementation

bool setFlat(bool flat);