We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 451b851 commit bdb7384Copy full SHA for bdb7384
js/src/Map.js
@@ -343,6 +343,19 @@ export class LeafletMapView extends utils.LeafletDOMWidgetView {
343
this.rerender,
344
this
345
);
346
+ this.listenTo(
347
+ this.model,
348
+ 'change:dragging',
349
+ function () {
350
+ if (this.model.get('dragging')) {
351
+ this.obj.dragging.enable();
352
+ }
353
+ else {
354
+ this.obj.dragging.disable();
355
356
+ },
357
+ this
358
+ );
359
this.listenTo(
360
this.model,
361
'change:layers',
0 commit comments