maplair 4.2.0 → 4.3.0

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.
@@ -1,5 +1,5 @@
1
1
  /* @preserve
2
- * Maplair 4.2.0, a JS library for interactive maps. https://maplair.org
2
+ * Maplair 4.3.0, a JS library for interactive maps. https://maplair.org
3
3
  * (c) 2026 Simon Legner and Maplair contributors, (c) 2010-2026 Volodymyr Agafonkin, (c) 2010-2011 CloudMade
4
4
  */
5
5
 
@@ -15,7 +15,7 @@ var __exportAll = (all, no_symbols) => {
15
15
  return target;
16
16
  };
17
17
  // package.json
18
- var version$1 = "4.2.0";
18
+ var version$1 = "4.3.0";
19
19
  // src/core/Util.js
20
20
  var Util_exports = /* @__PURE__ */ __exportAll({
21
21
  falseFn: () => falseFn,
@@ -2062,6 +2062,7 @@ var Evented = class Evented extends Class {
2062
2062
  }
2063
2063
  _propagateEvent(e) {
2064
2064
  for (const p of Object.values(this._eventParents ?? {})) p.fire(e.type, {
2065
+ layer: e.target,
2065
2066
  propagatedFrom: e.target,
2066
2067
  ...e
2067
2068
  }, true);
@@ -15960,6 +15961,7 @@ var Circle = class Circle extends CircleMarker {
15960
15961
  * @param {CircleOptions} [options]
15961
15962
  */
15962
15963
  constructor(latlng, options) {
15964
+ if (typeof options === "number") throw new Error("Circle: the radius is an option in Maplair. Use new Circle(latlng, {radius}).");
15963
15965
  super(latlng, options);
15964
15966
  if (isNaN(this.options.radius)) throw new Error("Circle radius cannot be NaN");
15965
15967
  this.callInitHooks(Circle);