mapbox-gl-directions icon indicating copy to clipboard operation
mapbox-gl-directions copied to clipboard

Waypoint style

Open thomaslecoeur opened this issue 6 years ago • 2 comments

Can't see waypoints on map, even while overriding style.

var mapDirections = new MapboxDirections({ // eslint-disable-line no-undef
    accessToken: mapboxgl.accessToken, // eslint-disable-line no-undef
    unit: 'metric',
    profile: 'mapbox/cycling',
    interactive: false,
    controls: {
      inputs: false,
      instructions: false,
      profileSwitcher: false,
    },
    styles: [
      {
        'id': 'directions-waypoint-point',
        'type': 'circle',
        'source': 'directions',
        'paint': {
          'circle-radius': 60,
          'circle-color': '#fa8bc9',
        },
        'filter': [
          'all',
          ['in', '$type', 'Point'],
          ['in', 'id', 'waypoint'],
        ],
      }
    ],
  })

thomaslecoeur avatar May 07 '18 13:05 thomaslecoeur

I think it does't support display waypiont

natezhengbne avatar Feb 01 '19 05:02 natezhengbne

+1 for this issue.

andrewcarter avatar Jan 03 '20 01:01 andrewcarter