PointStyle class

Represents the style of a point.

Modeled after Globe.GL's point styling with properties for:

  • Point altitude (pointAltitude)
  • Transition animations (pointsTransitionDuration)

The PointStyle class provides methods to convert the style to a map, JSON, and a string representation. It also supports copying the style with optional new size and color values.

Constructors

PointStyle({double size = 4, Color color = Colors.white, double altitude = 0.0, int transitionDuration = 500, bool merge = false})
Creates a new instance of the PointStyle class.
const
PointStyle.fromJson(String source)
Creates a PointStyle object from a JSON string.
factory
PointStyle.fromMap(Map<String, dynamic> map)
Creates a PointStyle object from a map.
factory

Properties

altitude → double
The altitude of the point above the globe surface. 0.0 = on surface, positive values rise above. Similar to Globe.GL's pointAltitude.
final
color → Color
The color of the point.
final
hashCode → int
The hash code for this object.
no setterinherited
merge → bool
Whether to merge points for better performance (batch rendering). Similar to Globe.GL's pointsMerge.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → double
The size of the point (radius).
final
transitionDuration → int
Duration in milliseconds for the point to animate when appearing/disappearing. Similar to Globe.GL's pointsTransitionDuration.
final

Methods

copyWith({double? size, Color? color, double? altitude, int? transitionDuration, bool? merge}) → PointStyle
Creates a copy of the PointStyle object with the specified properties overridden.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Converts the PointStyle object to a JSON string.
toMap() → Map<String, dynamic>
Converts the PointStyle object to a map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited