mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
chore: there is a difference between unset and delete
This commit is contained in:
parent
7a82b6547e
commit
b819c554ee
2 changed files with 4 additions and 2 deletions
|
@ -396,7 +396,8 @@ U.FeatureMixin = {
|
|||
const geojson = this.parentClass.prototype.toGeoJSON.call(this)
|
||||
geojson.properties = this.cloneProperties()
|
||||
geojson.id = this.id
|
||||
geojson.properties._storage_options = undefined
|
||||
// biome-ignore lint/performance/noDelete: we do not want the key at all.
|
||||
delete geojson.properties._storage_options
|
||||
return geojson
|
||||
},
|
||||
|
||||
|
|
|
@ -21,7 +21,8 @@ U.Share = L.Class.extend({
|
|||
map.eachFeature((feature) => {
|
||||
const row = feature.toGeoJSON().properties
|
||||
const center = feature.getCenter()
|
||||
row._umap_options = undefined
|
||||
// biome-ignore lint/performance/noDelete: we do not want the key at all.
|
||||
delete row._umap_options
|
||||
row.Latitude = center.lat
|
||||
row.Longitude = center.lng
|
||||
table.push(row)
|
||||
|
|
Loading…
Reference in a new issue