t×tecexpressby TeKOcloud
DEv0.7.1
API & types / FLUTTER

TxMapMarker.

Coordinate with a unique ID and optional popup text and color.

TxMapMarker

ParameterTypeDefaultMeaning
latdoublerequiredLatitude in degrees.
lngdoublerequiredLongitude in degrees.
idObjectrequiredUnique stable ID.
textString?nullText to display.
colorColor?nullDisplay color.
dart
import 'package:tecexpress/tecexpress.dart';

Future<void> example() async {
  const marker = TxMapMarker(52.52, 13.405, id: 'berlin', text: 'Berlin');
  print(marker.text);
}