Thanks to visit codestin.com
Credit goes to github.com

Skip to content

removeSource throws error (due to return type) #850

@lukemadera

Description

@lukemadera

mapController.removeSource throws an error; quick fix seems to be to just not return anything?

══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
The following TypeErrorImpl was thrown while handling a gesture:
Expected a value of type 'Future<void>', but got one of type 'JavaScriptObject'

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 251:49      throw_
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 84:3        castError
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 452:10  cast
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/classes.dart 635:14     as_C
packages/mapbox_gl_web/src/mapbox_map_controller.dart 371:5                       removeSource
packages/mapbox_gl/src/controller.dart 923:30                                     removeSource

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions