Skip to content

Commit 6c33613

Browse files
fixed issue 6508 of plotly.js.
fix lint.
1 parent dbf61a3 commit 6c33613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/traces/scattermapbox/plot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ proto.addSource = function(k, opts, cluster) {
5757
});
5858
}
5959
var isSourceExists = this.subplot.map.getSource(this.sourceIds[k]);
60-
if (!!isSourceExists) {
60+
if(isSourceExists) {
6161
isSourceExists.setData(opts.geojson);
6262
} else {
6363
this.subplot.map.addSource(this.sourceIds[k], sourceOpts);
@@ -84,8 +84,8 @@ proto.addLayer = function(k, opts, below) {
8484
var layerId = this.layerIds[k];
8585
var layerExist = this.subplot.getMapLayers().filter(function(mbLayer) {
8686
return mbLayer.id === layerId;
87-
})
88-
if (layerExist.length) {
87+
});
88+
if(layerExist.length) {
8989
this.subplot.map.removeLayer(layerId);
9090
}
9191
this.subplot.addLayer(source, below);

0 commit comments

Comments
 (0)