Skip to content

Is cooperativeGestures parameter supported? #79

@beazergood

Description

@beazergood

I'd like to use this option for better UX on mobile.

So far I've tried adding it to the Map component as a prop, to the mapComponent object, and as an option, but having no luck.

<Map
  accessToken={PUBLIC_MAPBOX_API_TOKEN}
  style="mapbox://styles/mapbox/outdoors-v11"
  bind:this={mapComponent}
  on:ready={onReady}
  center={[event.location.lng, event.location.lat]}
  zoom="4"
  cooperativeGestures={true}
// or
  options={{ cooperativeGestures: true }}
>

or mapComponent.cooperativeGesture = true;
or mapComponent.options = {cooperativeGesture = true};

Thought I'd check if it's supported or something I'm doing wrong. (most likely the latter, i'm a Svelte noob!)

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