-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
Why is the height and width of the SVG only determined via the div? It's a bad implementation. You should also be able to set the height and width using the options. My current workaround is now as follows:
this._element = jQuery('<div style="width: 100%; height: 400px"></div>').appendTo(telement);
this._map = new JsVectorMap({
selector: jQuery(this._element)[0],
map: 'world',
regionsSelectable: true
});
this._element.on('resize', () => {
this._map.updateSize();
});
Metadata
Metadata
Assignees
Labels
No labels