svgMap icon indicating copy to clipboard operation
svgMap copied to clipboard

How can I destroy the map entity?

Open seifti opened this issue 2 years ago • 0 comments

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?

seifti avatar Sep 07 '22 09:09 seifti