deleteMarker method

dynamic deleteMarker(
  1. int idx
)

Implementation

deleteMarker(int idx) {
  if (idx >= _markerCount) return; // bounds of index
  final String script = 'markers[$idx].setMap(null); markers[$idx] = null;';
  _runScript(script);
}