@geolonia/embed 6.0.0-pre.2 → 6.0.0-pre.3
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.
- package/CHANGELOG.md +8 -2
- package/dist/embed +1 -1
- package/dist/embed-core.js +1 -1
- package/dist/embed.js +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,14 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
## @geolonia/embed
|
|
4
4
|
|
|
5
|
-
### v6.0.0-pre.
|
|
5
|
+
### v6.0.0-pre.3
|
|
6
|
+
|
|
7
|
+
- **Fix**: maplibre-gl 5.11.0 以降で帰属表示が空になる問題を修正しました([#512](https://github.com/geolonia/embed/issues/512))。ソースに指定した `attribution` だけでなく、ベーススタイルの `© Geolonia` / `© OpenStreetMap` も表示されない状態でした。修正の実体は [maps-core#102](https://github.com/geolonia/maps-core/pull/102) で、embed 側は依存を更新して取り込みます。
|
|
8
|
+
- **Internal**: `@geolonia/maps-core` `^0.5.1` に依存します。
|
|
9
|
+
|
|
10
|
+
### v6.0.0-pre.2
|
|
6
11
|
|
|
7
12
|
コア実装を `@geolonia/maps-core` に委譲し、embed は「HTML 埋め込みラッパー」に専念する構成へ移行しました。
|
|
8
13
|
|
|
9
14
|
- **Refactor**: 地図コア(`GeoloniaMap` / `GeoloniaMarker` / `SimpleStyle` / `SimpleStyleVector` / `keyring` / attribution・logo コントロール等)を [`@geolonia/maps-core`](https://github.com/geolonia/maps-core) に移管。embed 側には `data-*` 属性のパースと DOM 自動走査・遅延読み込み・プラグイン機構といったラッパー機能のみを残しました。
|
|
10
|
-
- **
|
|
15
|
+
- **Compat**: `GeoloniaMap` コンストラクタは `GeoloniaMapOptions` オブジェクト形式(`new geolonia.Map({ container })`)を推奨しますが、旧 embed 互換として CSS セレクタ文字列(`new geolonia.Map('#map')`)や HTMLElement の直接指定も引き続き受け付けます([maps-core#90](https://github.com/geolonia/maps-core/issues/90))。legacy 形式ではコンテナの `data-*` 属性を読み取って options に反映します。
|
|
11
16
|
- **Breaking**: `keyring.parse()`(DOM スキャン)は廃止されました。API キーは `<script src="...?geolonia-api-key=KEY">` から embed が読み取り、`keyring.setApiKey()` で maps-core に渡します(既存の script タグ方式は引き続き動作します)。
|
|
12
17
|
- **Internal**: maps-core が内包する依存(pmtiles / sanitize-html / tinycolor2 / turf / gesture-handling 等)を embed の直接依存から削除しました。
|
|
18
|
+
- **Internal**: `@geolonia/maps-core` `^0.4.3` に依存します。
|
|
13
19
|
|
|
14
20
|
### nightly
|
|
15
21
|
|