@forgeroute/ui 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1155,8 +1155,6 @@ var MapComponent = class MapComponent {
1155
1155
  existing.layer.options.title = title;
1156
1156
  existing.layer.setZIndexOffset(item.kind === "marker" && item.item.id === selected ? 1e3 : 0);
1157
1157
  existing.layer.setIcon(build());
1158
- const iconEl = existing.layer.getElement();
1159
- if (iconEl) iconEl.title = title;
1160
1158
  existing.signature = signature;
1161
1159
  this.markIconHidden(existing.layer);
1162
1160
  continue;
@@ -1179,7 +1177,7 @@ var MapComponent = class MapComponent {
1179
1177
  }
1180
1178
  for (const [id, entry] of this.layerById) {
1181
1179
  if (keep.has(id)) continue;
1182
- e.markers.removeLayer(entry.layer);
1180
+ entry.layer.remove();
1183
1181
  this.layerById.delete(id);
1184
1182
  this.itemById.delete(id);
1185
1183
  }
@@ -2272,10 +2270,7 @@ var MapAreaFormComponent = class MapAreaFormComponent {
2272
2270
  const a = this.area();
2273
2271
  untracked(() => {
2274
2272
  if (a === null) {
2275
- if (this.lastApplied !== null) {
2276
- this.reset();
2277
- this.lastApplied = null;
2278
- }
2273
+ if (this.lastApplied !== null) this.reset();
2279
2274
  return;
2280
2275
  }
2281
2276
  if (sameArea(a, this.lastApplied)) return;