File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,7 @@ export interface GeoJSONSource extends Source {
342342 data ?: any ;
343343 minzoom ?: number ;
344344 maxzoom ?: number ;
345+ lineMetrics ?: boolean ;
345346 cluster ?: {
346347 radius ;
347348 maxZoom ;
Original file line number Diff line number Diff line change @@ -2505,6 +2505,11 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
25052505 if ( options . maxzoom ) {
25062506 geojsonOptions . withMaxZoom ( options . maxzoom ) ;
25072507 }
2508+
2509+ if ( options . lineMetrics !== undefined ) {
2510+ geojsonOptions . withLineMetrics ( options . lineMetrics ) ;
2511+ }
2512+
25082513 if ( options . cluster ) {
25092514 geojsonOptions
25102515 . withCluster ( true )
Original file line number Diff line number Diff line change @@ -2773,7 +2773,9 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
27732773 if ( options . maxzoom !== undefined ) {
27742774 sourceOptions [ MGLShapeSourceOptionMaximumZoomLevel ] = options . maxzoom ;
27752775 }
2776-
2776+ if ( options . lineMetrics !== undefined ) {
2777+ sourceOptions [ MGLShapeSourceOptionLineDistanceMetrics ] = options . lineMetrics ;
2778+ }
27772779 if ( options . cluster ) {
27782780 sourceOptions [ MGLShapeSourceOptionClustered ] = true ;
27792781 sourceOptions [ MGLShapeSourceOptionClusterRadius ] = options . cluster . radius || 40 ;
You can’t perform that action at this time.
0 commit comments