@texturehq/edges 1.30.4 → 1.30.5

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.
@@ -1030,6 +1030,22 @@ interface ClusteredVectorLayerSpec extends Omit<BaseLayerSpec, "tooltip"> {
1030
1030
  borderWidth?: number;
1031
1031
  /** Border color */
1032
1032
  borderColor?: string;
1033
+ /**
1034
+ * Render points as a Mapbox icon symbol instead of a circle.
1035
+ *
1036
+ * `name` must match an image registered on the map (e.g. via
1037
+ * `registerPhosphorIcon` from `@texturehq/edges`). When set, the renderer
1038
+ * emits a `symbol` sub-layer with `icon-image: name` instead of the
1039
+ * default `circle` sub-layer. The selected-point sub-layer follows
1040
+ * the same swap.
1041
+ *
1042
+ * Pass an expression (Mapbox `["match", …]`) to dispatch by feature
1043
+ * property — e.g. for per-device-type icons keyed on `["get", "type"]`.
1044
+ */
1045
+ icon?: {
1046
+ name: string | unknown[];
1047
+ size?: number;
1048
+ };
1033
1049
  };
1034
1050
  /** Style overrides for selected point (optional, uses design system defaults) */
1035
1051
  selectedStyle?: {
@@ -1030,6 +1030,22 @@ interface ClusteredVectorLayerSpec extends Omit<BaseLayerSpec, "tooltip"> {
1030
1030
  borderWidth?: number;
1031
1031
  /** Border color */
1032
1032
  borderColor?: string;
1033
+ /**
1034
+ * Render points as a Mapbox icon symbol instead of a circle.
1035
+ *
1036
+ * `name` must match an image registered on the map (e.g. via
1037
+ * `registerPhosphorIcon` from `@texturehq/edges`). When set, the renderer
1038
+ * emits a `symbol` sub-layer with `icon-image: name` instead of the
1039
+ * default `circle` sub-layer. The selected-point sub-layer follows
1040
+ * the same swap.
1041
+ *
1042
+ * Pass an expression (Mapbox `["match", …]`) to dispatch by feature
1043
+ * property — e.g. for per-device-type icons keyed on `["get", "type"]`.
1044
+ */
1045
+ icon?: {
1046
+ name: string | unknown[];
1047
+ size?: number;
1048
+ };
1033
1049
  };
1034
1050
  /** Style overrides for selected point (optional, uses design system defaults) */
1035
1051
  selectedStyle?: {