svgMap
svgMap copied to clipboard
How can I destroy the map entity?
Let's say I've created a map like below:
this.map = new svgMap({
targetElementID: 'cmsSvgMap',
data: mapData,
colorMax: '#393c4d',
colorMin: '#393c4d73',
flagType: 'emoji',
noDataText: this.$t('analytics.cookies.map.no_data'),
countryNames: this.countries.reduce((acc, cur) => ({ ...acc, [cur.country_id??'_unknown']: cur.country_name }), {})
});
I then want to destroy what is in this.map
- there doesn't seem to be a destroy()
function?