@forgeroute/ui 0.5.5 → 0.5.6

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,6 +1155,8 @@ 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;
1158
1160
  existing.signature = signature;
1159
1161
  this.markIconHidden(existing.layer);
1160
1162
  continue;
@@ -1177,7 +1179,7 @@ var MapComponent = class MapComponent {
1177
1179
  }
1178
1180
  for (const [id, entry] of this.layerById) {
1179
1181
  if (keep.has(id)) continue;
1180
- entry.layer.remove();
1182
+ e.markers.removeLayer(entry.layer);
1181
1183
  this.layerById.delete(id);
1182
1184
  this.itemById.delete(id);
1183
1185
  }
@@ -2270,7 +2272,10 @@ var MapAreaFormComponent = class MapAreaFormComponent {
2270
2272
  const a = this.area();
2271
2273
  untracked(() => {
2272
2274
  if (a === null) {
2273
- if (this.lastApplied !== null) this.reset();
2275
+ if (this.lastApplied !== null) {
2276
+ this.reset();
2277
+ this.lastApplied = null;
2278
+ }
2274
2279
  return;
2275
2280
  }
2276
2281
  if (sameArea(a, this.lastApplied)) return;