8000 Migrate to MapLibre by birkskyum · Pull Request #7015 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Migrate to MapLibre #7015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 117 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
d59264f
Install maplibre
birkskyum Jun 5, 2024
54408b2
migrate to maplibre
birkskyum Jun 5, 2024
e30f3b0
remove index file
birkskyum Jun 5, 2024
a8a5416
use prod build
birkskyum Jun 5, 2024
7e15adf
remove the mapbox token
birkskyum Jun 5, 2024
720f1d8
remove mapbox token
birkskyum Jun 5, 2024
0dd739d
lint
birkskyum Jun 5, 2024
32deaba
update expected schema
birkskyum Jun 5, 2024
d509764
remove maplibre logo addition
birkskyum Jun 5, 2024
5ebf050
lint
birkskyum Jun 5, 2024
998e548
fix maplibre style var naming
birkskyum Jun 5, 2024
e6408a1
lint
birkskyum Jun 5, 2024
0f323f2
lint
birkskyum Jun 5, 2024
a136a89
fix the built in style glyphs
birkskyum Jun 5, 2024
cb59be1
maplibre doesn't need credentials
birkskyum Jun 5, 2024
5229cd5
Revert "fix the built in style glyphs"
birkskyum Jun 5, 2024
15ae076
fix extrabold fonts
birkskyum Jun 5, 2024
941952f
add missing closing braces
birkskyum Jun 6, 2024
03c64e3
lint
birkskyum Jun 6, 2024
688d210
changelog
birkskyum Jun 6, 2024
e07d60a
add maplibre-gl to webpack config
birkskyum Jun 6, 2024
a789a26
reduce the diff to a minimum - keep mapbox naming in traces
birkskyum Jun 6, 2024
e239623
ci
birkskyum Jun 6, 2024
54fc455
reduce diff
birkskyum Jun 6, 2024
87c89e5
reduce diff
birkskyum Jun 6, 2024
84758fa
reduce diff
birkskyum Jun 6, 2024
77ddb35
reduce diff
birkskyum Jun 6, 2024
8042130
typo
birkskyum Jun 6, 2024
153169b
use change file instead of changelog
birkskyum Jun 6, 2024
5bf848b
reduce diff
birkskyum Jun 6, 2024
23aba28
reduce diff
birkskyum Jun 6, 2024
d46c5c5
reduce diff
birkskyum Jun 6, 2024
24b95c1
trim lines
birkskyum Jun 6, 2024
2a04b4f
reduce diff
birkskyum Jun 6, 2024
2c4c949
revert mocks
birkskyum Jun 6, 2024
6d04f0b
remove open sans extrabold font fix from this pr
birkskyum Jun 6, 2024
01b54da
Merge branch 'master' into maplibre
birkskyum Jun 6, 2024
ad1cd31
remove maplibre fox webpack
birkskyum Jun 6, 2024
68dd920
fix open sans extrabold
birkskyum Jun 6, 2024
9982cf9
add to blacklist
birkskyum Jun 6, 2024
805270c
fix open sans font
birkskyum Jun 6, 2024
fe51207
Noto Sans Regular
birkskyum Jun 6, 2024
5c57f0d
remove console.log
birkskyum Jun 6, 2024
b645866
fix layout check race condition
birkskyum Jun 6, 2024
7cd4e85
remove blacklists
birkskyum Jun 6, 2024
9ecc9ad
add back blacklist
birkskyum Jun 6, 2024
3386006
adjust blacklist
birkskyum Jun 6, 2024
923375a
make lint-fix pass no-es6 check
birkskyum Jun 6, 2024
7cd3177
update baselines
birkskyum Jun 6, 2024
c2663ed
revert mocks
birkskyum Jun 6, 2024
95e4206
define mapbox style keywords
birkskyum Jun 6, 2024
099ee56
use vector styles
birkskyum Jun 6, 2024
962774e
add styles
birkskyum Jun 7, 2024
2f5aa98
add nolabels and voyager style
birkskyum Jun 7, 2024
014e063
sat
birkskyum Jun 7, 2024
2b5bf15
fixed the extrabold issue in mapbox_fonts-supported-open-sans-weight …
birkskyum Jun 7, 2024
9cd8406
add extra styles
birkskyum Jun 7, 2024
8000 b2873b5
update plot-schema
birkskyum Jun 7, 2024
3a3ee24
lint
birkskyum Jun 7, 2024
bbcfe39
bais
birkskyum Jun 7, 2024
6ca6748
blacklist custom style
birkskyum Jun 7, 2024
f05189f
blacklist gl2d_heatmapgl
birkskyum Jun 7, 2024
36fe51d
add error desc to gl2d
birkskyum Jun 7, 2024
1ebdb38
remove api keys from stamen
birkskyum Jun 7, 2024
0e3ac61
cleanup style loading
birkskyum Jun 7, 2024
a3c5f40
cleanup getStyle
birkskyum Jun 7, 2024
408d362
blacklist gl2d_heatmapgl_discrete , memory issue
birkskyum Jun 7, 2024
af5745b
update baselines
birkskyum Jun 7, 2024
ad43fff
use voyager for streets
birkskyum Jun 7, 2024
d33c8ea
have labels by default
birkskyum Jun 7, 2024
1a12460
nolabels
birkskyum Jun 7, 2024
cd2ac06
adjust defualt
birkskyum Jun 7, 2024
1a79b82
update baseline
birkskyum Jun 7, 2024
a845821
remove mapbox from blacklist
birkskyum Jun 7, 2024
72cef73
use sat
birkskyum Jun 7, 2024
0bfbfcd
blacklist stamen
birkskyum Jun 7, 2024
7ce0a68
fix attribution tests
birkskyum Jun 7, 2024
986dd55
update custom style
birkskyum Jun 7, 2024
2eacc32
osm style
birkskyum Jun 7, 2024
d5411fa
add gl2d to blacklist
birkskyum Jun 7, 2024
7a2c98f
remove
birkskyum Jun 7, 2024
8839f4c
add
birkskyum Jun 7, 2024
48fb8d6
remove special cases found in compare_pixels_test.js
birkskyum Jun 7, 2024
8da4c5d
update baselines
birkskyum Jun 7, 2024
c6c2ef7
remove filter of mock
birkskyum Jun 7, 2024
ff3b9ee
remove skipping blacklist
birkskyum Jun 7, 2024
53478d9
lint
birkskyum Jun 7, 2024
f74cb08
increase parallelism for baseline creation
archmoj Jun 7, 2024
fd50eb5
small baselines updates related to change of order of rendering
archmoj Jun 7, 2024
6540ade
revisit blacklist in compare_pixels_test.js
archmoj Jun 7, 2024
97f8898
Use url in style
birkskyum Jun 10, 2024
84cf02e
nolabel
birkskyum Jun 10, 2024
4125395
Bump to maplibre-gl 4.4.0 and use unminified prod build
birkskyum Jun 14, 2024
1b62417
Merge remote-tracking branch 'origin/master' into maplibre
birkskyum Jun 18, 2024
fd53631
disable tests
birkskyum Jun 18, 2024
17f4324
fix choropleth jasmine test
birkskyum Jul 2, 2024
d35eb4c
fix densitymapbox jasmine test
birkskyum Jul 2, 2024
5733a95
fix some mapbox jasmine tests
birkskyum Jul 2, 2024
fcfb09b
fix mapbox scroolZoom test
birkskyum Jul 2, 2024
310fdef
maplibre is more strict, protecting against invalid sources and layers
birkskyum Jul 2, 2024
8000 3cf4f9d
disable test due to incorrect mock
birkskyum Jul 2, 2024
258998a
update expectations due to Carto style
birkskyum Jul 2, 2024
2e5f8f9
rehover mapbox test
birkskyum Jul 2, 2024
510fa26
lint
birkskyum Jul 3, 2024
dd4cb63
show errors in ci
birkskyum Jul 3, 2024
8a7b84c
fix layer indexes
birkskyum Jul 3, 2024
d718685
remove fit
birkskyum Jul 3, 2024
a408f14
lint
birkskyum Jul 3, 2024
961c747
remove comment
birkskyum Jul 3, 2024
db36596
fix 'should be able to add, update and remove layers'
birkskyum Jul 3, 2024
871c2d3
don't fit
birkskyum Jul 3, 2024
9a36cf6
lint
birkskyum Jul 3, 2024
1308cbe
add clean function to mapbox plot
birkskyum Jul 3, 2024
0116b21
add addition to scrollZoom test
birkskyum Jul 3, 2024
070941e
remove fit()
birkskyum Jul 3, 2024
f5e471c
Drop test_image from noci task
birkskyum Jul 8, 2024
240a392
Drop test_image from noci task
birkskyum Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
migrate to maplibre
  • Loading branch information
birkskyum committed Jun 5, 2024
commit 54408b203907f24ce74c77b00a967d0253ca96b8
2 changes: 1 addition & 1 deletion .circleci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ case $1 in
make-baselines-virtual-webgl)
SUITE=$({\
find $ROOT/test/image/mocks/gl* -type f -printf "%f\n"; \
find $ROOT/test/image/mocks/mapbox* -type f -printf "%f\n"; \
find $ROOT/test/image/mocks/maplibre* -type f -printf "%f\n"; \
} | sed 's/\.json$//1' | circleci tests split)
python3 test/image/make_baseline.py virtual-webgl $SUITE || EXIT_STATE=$?
exit $EXIT_STATE
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ Other methods used by some trace modules:
selections.
- `_module.convert`: Sometimes separated from `_module.plot` or `_module.calc` to convert the
plotly.js settings to another framework e.g. to `gl-plot3d` for `gl3d` traces, to
`mapbox-gl` from `mapbox` traces. This split can make the logic easier to test.
`maplibre-gl` from `maplibre` traces. This split can make the logic easier to test.
If you make a `convert`, you should call it from either `calc` or `plot`.

## Coding style
Expand Down
4 changes: 0 additions & 4 deletions devtools/test_dashboard/devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ var Tabs = {
// use local topojson files
topojsonURL: '../../node_modules/sane-topojson/dist/',

// register mapbox access token
// run `npm run preset` if you haven't yet
mapboxAccessToken: credentials.MAPBOX_ACCESS_TOKEN,

// show all logs in console
logging: 2
});
Expand Down
3 changes: 0 additions & 3 deletions lib/choroplethmapbox.js

This file was deleted.

3 changes: 3 additions & 0 deletions lib/choroplethmaplibre.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('../src/traces/choroplethmaplibre');
3 changes: 0 additions & 3 deletions lib/densitymapbox.js

This file was deleted.

3 changes: 3 additions & 0 deletions lib/densitymaplibre.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('../src/traces/densitymaplibre');
6 changes: 3 additions & 3 deletions lib/index-mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var Plotly = require('./core');

Plotly.register([
// traces
require('./scattermapbox'),
require('./choroplethmapbox'),
require('./densitymapbox'),
require('./scattermaplibre'),
require('./choroplethmaplibre'),
require('./densitymaplibre'),

// transforms
require('./aggregate'),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use strict';

var Plotly = require('./core');

Plotly.register([
// traces
require('./scattermaplibre'),
require('./choroplethmaplibre'),
require('./densitymaplibre'),

// transforms
require('./aggregate'),
require('./filter'),
require('./groupby'),
require('./sort'),

// components
require('./calendars'),
]);

module.exports = Plotly;
6 changes: 3 additions & 3 deletions lib/index-strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Plotly.register([
require('./heatmapgl'),
require('../src/traces/parcoords/strict'),
require('./parcats'),
require('./scattermapbox'),
require('./choroplethmapbox'),
require('./densitymapbox'),
require('./scattermaplibre'),
require('./choroplethmaplibre'),
require('./densitymaplibre'),
require('./sankey'),
require('./indicator'),
require('./table'),
Expand Down
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Plotly.register([
require(&# BD94 39;./heatmapgl'),
require('./parcoords'),
require('./parcats'),
require('./scattermapbox'),
require('./choroplethmapbox'),
require('./densitymapbox'),
require('./scattermaplibre'),
require('./choroplethmaplibre'),
require('./densitymaplibre'),
require('./sankey'),
require('./indicator'),
require('./table'),
Expand Down
4 changes: 2 additions & 2 deletions lib/locales/si.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions lib/scattermapbox.js

This file was deleted.

3 changes: 3 additions & 0 deletions lib/scattermaplibre.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('../src/traces/scattermaplibre');
2 changes: 1 addition & 1 deletion 2 src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) {
if(d.zLabel !== undefined) {
if(d.xLabel !== undefined) text += 'x: ' + d.xLabel + '<br>';
if(d.yLabel !== undefined) text += 'y: ' + d.yLabel + '<br>';
if(d.trace.type !== 'choropleth' && d.trace.type !== 'choroplethmapbox') {
if(d.trace.type !== 'choropleth' && d.trace.type !== 'choroplethmaplibre') {
text += (text ? 'z: ' : '') + d.zLabel;
}
} else if(showCommonLabel && d[h0 + 'Label'] === t0) {
Expand Down
8 changes: 4 additions & 4 deletions src/components/fx/layout_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
var dragMode = coerce('dragmode');
if(dragMode === 'select') coerce('selectdirection');

// if only mapbox or geo subplots is present on graph,
// if only maplibre or geo subplots is present on graph,
// reset 'zoom' dragmode to 'pan' until 'zoom' is implemented,
// so that the correct modebar button is active
var hasMapbox = layoutOut._has('mapbox');
var hasMapLibre = layoutOut._has('maplibre');
var hasGeo = layoutOut._has('geo');
var len = layoutOut._basePlotModules.length;

if(layoutOut.dragmode === 'zoom' && (
((hasMapbox || hasGeo) && len === 1) ||
(hasMapbox && hasGeo && len === 2)
((hasMapLibre || hasGeo) && len === 1) ||
(hasMapLibre && hasGeo && len === 2)
)) {
layoutOut.dragmode = 'pan';
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/legend/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,13 +541,13 @@ module.exports = function style(s, gd, legend) {
useGradient = true;
break;
case 'choropleth' :
case 'choroplethmapbox' :
case 'choroplethmaplibre' :
ptsData = [
['M-6,-6V6H6V-6Z']
];
useGradient = true;
break;
case 'densitymapbox' :
case 'densitymaplibre' :
ptsData = [
['M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0']
];
Expand Down
24 changes: 12 additions & 12 deletions src/components/modebar/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ modeBarButtons.resetViews = {
handleCamera3d(gd, ev);

resetView(gd, 'geo');
resetView(gd, 'mapbox');
resetView(gd, 'maplibre');
}
};

Expand Down Expand Up @@ -684,42 +684,42 @@ function setSpikelineVisibility(gd) {
return aobj;
}

modeBarButtons.resetViewMapbox = {
name: 'resetViewMapbox',
modeBarButtons.resetViewMapLibre = {
name: 'resetViewMapLibre',
_cat: 'resetView',
title: function(gd) { return _(gd, 'Reset view'); },
attr: 'reset',
icon: Icons.home,
click: function(gd) {
resetView(gd, 'mapbox');
resetView(gd, 'maplibre');
}
};

modeBarButtons.zoomInMapbox = {
name: 'zoomInMapbox',
modeBarButtons.zoomInMapLibre = {
name: 'zoomInMapLibre',
_cat: 'zoomin',
title: function(gd) { return _(gd, 'Zoom in'); },
attr: 'zoom',
val: 'in',
icon: Icons.zoom_plus,
click: handleMapboxZoom
click: handleMapLibreZoom
};

modeBarButtons.zoomOutMapbox = {
name: 'zoomOutMapbox',
modeBarButtons.zoomOutMapLibre = {
name: 'zoomOutMapLibre',
_cat: 'zoomout',
title: function(gd) { return _(gd, 'Zoom out'); },
attr: 'zoom',
val: 'out',
icon: Icons.zoom_minus,
click: handleMapboxZoom
click: handleMapLibreZoom
};

function handleMapboxZoom(gd, ev) {
function handleMapLibreZoom(gd, ev) {
var button = ev.currentTarget;
var val = button.getAttribute('data-val');
var fullLayout = gd._fullLayout;
var subplotIds = fullLayout._subplots.mapbox || [];
var subplotIds = fullLayout._subplots.maplibre || [];
var scalar = 1.05;
var aObj = {};

Expand Down
14 changes: 7 additions & 7 deletions src/components/modebar/manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function getButtonGroups(gd) {
var hasFunnelarea = fullLayout._has('funnelarea');
var hasGL2D = fullLayout._has('gl2d');
var hasTernary = fullLayout._has('ternary');
var hasMapbox = fullLayout._has('mapbox');
var hasMapLibre = fullLayout._has('maplibre');
var hasPolar = fullLayout._has('polar');
var hasSmith = fullLayout._has('smith');
var hasSankey = fullLayout._has('sankey');
Expand Down Expand Up @@ -154,7 +154,7 @@ function getButtonGroups(gd) {
var resetGroup = [];
var dragModeGroup = [];

if((hasCartesian || hasGL2D || hasPie || hasFunnelarea || hasTernary) + hasGeo + hasGL3D + hasMapbox + hasPolar + hasSmith > 1) {
if((hasCartesian || hasGL2D || hasPie || hasFunnelarea || hasTernary) + hasGeo + hasGL3D + hasMapLibre + hasPolar + hasSmith > 1) {
// graphs with more than one plot types get 'union buttons'
// which reset the view or toggle hover labels across all subplots.
hoverGroup = ['toggleHover'];
Expand All @@ -166,10 +166,10 @@ function getButtonGroups(gd) {
} else if(hasGL3D) {
hoverGroup = ['hoverClosest3d'];
resetGroup = ['resetCameraDefault3d', 'resetCameraLastSave3d'];
} else if(hasMapbox) {
zoomGroup = ['zoomInMapbox', 'zoomOutMapbox'];
} else if(hasMapLibre) {
zoomGroup = ['zoomInMapLibre', 'zoomOutMapLibre'];
hoverGroup = ['toggleHover'];
resetGroup = ['resetViewMapbox'];
resetGroup = ['resetViewMapLibre'];
} else if(hasGL2D) {
hoverGroup = ['hoverClosestGl2d'];
} else if(hasPie) {
Expand Down Expand Up @@ -200,7 +200,7 @@ function getButtonGroups(gd) {
dragModeGroup = ['zoom3d', 'pan3d', 'orbitRotation', 'tableRotation'];
} else if(((hasCartesian || hasGL2D) && !allAxesFixed) || hasTernary) {
dragModeGroup = ['zoom2d', 'pan2d'];
} else if(hasMapbox || hasGeo) {
} else if(hasMapLibre || hasGeo) {
dragModeGroup = ['pan2d'];
} else if(hasPolar) {
dragModeGroup = ['zoom2d'];
Expand Down Expand Up @@ -228,7 +228,7 @@ function getButtonGroups(gd) {
if(DRAW_MODES.indexOf(b) !== -1) {
// accept pre-defined drag modes i.e. shape drawing features as string
if(
fullLayout._has('mapbox') || // draw shapes in paper coordinate (could be improved in future to support data coordinate, when there is no pitch)
fullLayout._has('maplibre') || // draw shapes in paper coordinate (could be improved in future to support data coordinate, when there is no pitch)
fullLayout._has('cartesian') // draw shapes in data coordinate
) {
dragModeGroup.push(b);
Expand Down
4 changes: 2 additions & 2 deletions src/components/selections/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ function clearSelectionsCache(dragOptions, immediateSelect) {
var selections;
if(
isSelectMode &&
!hasSubplot(dragOptions) // only allow cartesian - no mapbox for now
!hasSubplot(dragOptions) // only allow cartesian - no maplibre for now
) {
selections = newSelections(outlines, dragOptions);
}
Expand Down Expand Up @@ -1549,7 +1549,7 @@ function getFillRangeItems(dragOptions) {
var plotinfo = dragOptions.plotinfo;

return (
plotinfo.fillRangeItems || // allow subplots (i.e. geo, mapbox, sankey) to override fillRangeItems routine
plotinfo.fillRangeItems || // allow subplots (i.e. geo, maplibre, sankey) to override fillRangeItems routine
makeFillRangeItems(dragOptions.xaxes.concat(dragOptions.yaxes))
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/plot_api/plot_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ function setPlotContext(gd, config) {
szOut.cartesian = 1;
szOut.gl3d = 1;
szOut.geo = 1;
szOut.mapbox = 1;
szOut.maplibre = 1;
} else if(typeof szIn === 'string') {
var parts = szIn.split('+');
for(i = 0; i < parts.length; i++) {
Expand All @@ -526,7 +526,7 @@ function setPlotContext(gd, config) {
} else if(szIn !== false) {
szOut.gl3d = 1;
szOut.geo = 1;
szOut.mapbox = 1;
szOut.maplibre = 1;
}
}

Expand Down Expand Up @@ -2387,7 +2387,7 @@ var layoutUIControlPatterns = [
{pattern: /^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},
{pattern: /^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},
{pattern: /^(polar\d*\.angularaxis)\.rotation/},
{pattern: /^(mapbox\d*)\.(center|zoom|bearing|pitch)/},
{pattern: /^(maplibre\d*)\.(center|zoom|bearing|pitch)/},

{pattern: /^legend\.(x|y)$/, attr: 'editrevision'},
{pattern: /^(shapes|annotations)/, attr: 'editrevision'},
Expand Down
18 changes: 4 additions & 14 deletions src/plot_api/plot_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ var configAttributes = {

scrollZoom: {
valType: 'flaglist',
flags: ['cartesian', 'gl3d', 'geo', 'mapbox'],
flags: ['cartesian', 'gl3d', 'geo', 'maplibre'],
extras: [true, false],
dflt: 'gl3d+geo+mapbox',
dflt: 'gl3d+geo+maplibre',
description: [
'Determines whether mouse wheel or two-finger scroll zooms is enable.',
'Turned on by default for gl3d, geo and mapbox subplots',
'Turned on by default for gl3d, geo and maplibre subplots',
'(as these subplot types do not have zoombox via pan),',
'but turned off by default for cartesian subplots.',
'Set `scrollZoom` to *false* to disable scrolling for all subplots.'
Expand Down Expand Up @@ -192,7 +192,7 @@ var configAttributes = {
'This is the time interval (in ms) between first mousedown and',
'2nd mouseup to constitute a double-click.',
'This setting propagates to all on-subplot double clicks',
'(except for geo and mapbox) and on-legend double clicks.'
'(except for geo and maplibre) and on-legend double clicks.'
].join(' ')
},

Expand Down Expand Up @@ -382,16 +382,6 @@ var configAttributes = {
].join(' ')
},

mapboxAccessToken: {
valType: 'string',
dflt: null,
description: [
'Mapbox access token (required to plot mapbox trace types)',
'If using an Mapbox Atlas server, set this option to \'\'',
'so that plotly.js won\'t attempt to authenticate to the public Mapbox server.'
].join(' ')
},

logging: {
valType: 'integer',
min: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/plots/geo/geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ proto.updateFx = function(fullLayout, geoLayout) {
}

if(clickMode.indexOf('event') > -1) {
// TODO: like pie and mapbox, this doesn't support right-click
// TODO: like pie and maplibre, this doesn't support right-click
// actually this one is worse, as right-click starts a pan, or leaves
// select in a weird state.
// Also, only tangentially related, we should cancel hover during pan
Expand Down
Loading
0