Skip to content

Commit f72a146

Browse files
committed
Added point features and prepared to bundle
1 parent 38f9128 commit f72a146

File tree

6 files changed

+17
-1
lines changed

6 files changed

+17
-1
lines changed

packages/map-styles/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format
44
is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this
55
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.2.2] - 2025-10-05
8+
9+
- Add `pointSymbolIndex` to allow custom loading of symbols by external code
10+
- Add `sample_locality` and `fold_axis` symbols
11+
712
## [1.2.1] - 2025-06-25
813

914
Small improvements to types and styles

packages/map-styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@macrostrat/map-styles",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Utilities for working with Mapbox map styles",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

packages/map-styles/src/layer-helpers/point-features/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ class MeasurementStyler {
7777
}
7878
}
7979

80+
const pointSymbolIndex = pointSymbols;
81+
8082
async function setupPointSymbols(map) {
8183
/** Load and prepare all symbols for measurements */
8284
return Promise.all(
@@ -89,6 +91,7 @@ async function setupPointSymbols(map) {
8991
);
9092
}
9193

94+
export { pointSymbolIndex };
9295
export * from "./icon-image";
9396
export * from "./symbol-layer";
9497
export { MeasurementStyler, setupPointSymbols };

packages/map-styles/src/layer-helpers/point-features/symbols/unused/fold_axis.png renamed to packages/map-styles/src/layer-helpers/point-features/symbols/fold_axis.png

File renamed without changes.

packages/map-styles/src/layer-helpers/point-features/symbols/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import point from "./point.png";
1414
import shearZoneInclined from "./shear_zone_inclined.png";
1515
import shearZoneVertical from "./shear_zone_vertical.png";
1616
import vein from "./vein.png";
17+
import foldAxis from "./fold_axis.png";
18+
import sampleLocality from "./sample_locality.png";
1719

1820
export {
1921
beddingHorizontal,
@@ -32,6 +34,8 @@ export {
3234
shearZoneInclined,
3335
shearZoneVertical,
3436
vein,
37+
foldAxis,
38+
sampleLocality,
3539
};
3640

3741
export default {
@@ -50,6 +54,8 @@ export default {
5054
shearZoneInclined,
5155
shearZoneVertical,
5256
vein,
57+
foldAxis,
58+
sampleLocality,
5359
};
5460

5561
export type PointSymbolName =
@@ -67,5 +73,7 @@ export type PointSymbolName =
6773
| "lineationGeneral"
6874
| "point"
6975
| "vein"
76+
| "foldAxis"
77+
| "sampleLocality"
7078
| "shearZoneInclined"
7179
| "shearZoneVertical";

packages/map-styles/src/layer-helpers/point-features/symbols/unused/sample_locality.png renamed to packages/map-styles/src/layer-helpers/point-features/symbols/sample_locality.png

File renamed without changes.

0 commit comments

Comments
 (0)