Skip to content

Commit d367b05

Browse files
wgsadminmanz
andauthored
🤖 Merge PR DefinitelyTyped#75030 chore: update woosmap.map by @wgsadmin
Co-authored-by: manz <manz@users.noreply.github.com>
1 parent 725132e commit d367b05

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

types/woosmap.map/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,6 +1593,13 @@ declare namespace woosmap.map {
15931593
* The initial tilt to start from.
15941594
*/
15951595
tilt?: number;
1596+
/**
1597+
* Opt into the upcoming visual refresh styles. When true, the resolved style
1598+
* is upgraded to its refreshed counterpart (e.g. `streets` -> `streets_next`).
1599+
* If unset, falls back to `woosmap.map.config.getVisualRefresh()` (default false).
1600+
* Experimental — will be removed once the refreshed styles become the default.
1601+
*/
1602+
visualRefresh?: boolean;
15961603
/**
15971604
* The initial map zoom level to start from.
15981605
*/

types/woosmap.map/woosmap.map-tests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const mapOptions = expectType({
2222
],
2323
enableMarkerAccessibleNavigation: true,
2424
mapTypeId: woosmap.map.MapTypeId.ROADMAP,
25+
visualRefresh: true,
2526
}) as woosmap.map.MapOptions;
2627
const map = new woosmap.map.Map(document.getElementById("mapContainer") as HTMLElement, mapOptions);
2728

0 commit comments

Comments
 (0)