Skip to content

_updateMarker not working #78

@DrowLink

Description

@DrowLink

_updateMarker inside _initClusterManager() not working,

my updateMarket method:

 void _updateMarkers(Set<Marker> markers) {
    print('Updated ${markers.length} markers');
    setState(() {
      this.markers = markers;
    });
  }

my initState:

 void initState() {
    _userLocation = gmaps.LatLng(
      widget.initialLatitude,
      widget.initialLongitude,
    );

    _center = _userLocation!;

    if (kIsWeb) {
      _addOrUpdateCircle();
      print('KISWEB = $kIsWeb');
    }

    _zoomLevel = widget.initialZoom;

    _loadLeadsAndAddMarkers().then((_) {
      _clusterManager = _initClusterManager();
      _clusterManager?.updateMap();
    });

    print("initialized INITSTATE");
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions