streetscape.gl icon indicating copy to clipboard operation
streetscape.gl copied to clipboard

Add new controller prop to LogViewer

Open marionleborgne opened this issue 6 years ago • 1 comments

Allow passing a custom map controller (http://uber.github.io/react-map-gl/#/Documentation/advanced/custom-map-controller?section=overriding-the-default-map-controller) to LogViewer via a controller prop.

marionleborgne avatar Mar 28 '19 02:03 marionleborgne

You can achieve this by supplying your own view mode:

const CUSTOM_VIEW_MODE = {
    name: 'custom',
    initialViewState: {
      maxPitch: 60,
      pitch: 30
    },
    mapInteraction: {
      type: CustomController
    },
    tracked: {
      position: true,
      heading: true
    }
  }

Pessimistress avatar May 09 '19 23:05 Pessimistress