Fix custom controls with user-provided element
This commit is contained in:
@@ -80,10 +80,10 @@ class OverviewMap extends Control {
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
super({
|
||||
element: document.createElement('div'),
|
||||
render: options.render,
|
||||
target: options.target,
|
||||
});
|
||||
this.createElement();
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user