getSymbolLatLng method

Future<LatLng> getSymbolLatLng(
  1. Symbol symbol
)

Retrieves the current position of the symbol. This may be different from the value of symbol.options.geometry if the symbol is draggable. In that case this method provides the symbol's actual position, and symbol.options.geometry the last programmatically set position.

Implementation

Future<LatLng> getSymbolLatLng(Symbol symbol) async {
  assert(_symbols[symbol.id] == symbol);
  final symbolLatLng = await _mapboxGlPlatform.getSymbolLatLng(symbol);
  notifyListeners();
  return symbolLatLng;
}