@tileflow/svelte 0.1.0-alpha.31 → 0.1.0-alpha.32

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/README.md CHANGED
@@ -117,9 +117,12 @@ and [vegetation controls](https://github.com/tileflow/tileflow-sdk/blob/main/pac
117
117
  those options, then the manifest view, then shared defaults. `TileflowMap` always selects a Tileflow
118
118
  map through its manifest; it has no renderer discriminator or direct-style mode. Tileflow's styles
119
119
  are validated when they are compiled, so `validateStyle` defaults to `false`; pass `true` to
120
- validate them again in the browser. The obsolete
121
- source fields `kind` and `style` are rejected. For a completely unmanaged map, use `maplibre-gl`
122
- directly rather than a Tileflow component.
120
+ validate them again in the browser.
121
+ The map canvas is multisampled by default (`canvasContextAttributes.antialias` is `true`) so the
122
+ thin edges of 3D models stay continuous; other context attributes you pass are kept, and
123
+ `canvasContextAttributes: {antialias: false}` trades that smoothing for lower GPU cost.
124
+ The obsolete source fields `kind` and `style` are rejected. For a completely unmanaged map, use
125
+ `maplibre-gl` directly rather than a Tileflow component.
123
126
 
124
127
  ## Add annotations and native popup UI
125
128
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tileflow/svelte",
3
- "version": "0.1.0-alpha.31",
3
+ "version": "0.1.0-alpha.32",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Svelte component for rendering Tileflow maps with MapLibre.",
6
6
  "type": "module",
@@ -44,7 +44,7 @@
44
44
  "access": "public"
45
45
  },
46
46
  "dependencies": {
47
- "@tileflow/core": ">=0.1.0-alpha.38 <0.1.0-beta.0",
47
+ "@tileflow/core": ">=0.1.0-alpha.39 <0.1.0-beta.0",
48
48
  "@tileflow/interactions": ">=0.1.0-alpha.6 <0.1.0-beta.0"
49
49
  },
50
50
  "peerDependencies": {
@@ -54,7 +54,7 @@
54
54
  "devDependencies": {
55
55
  "maplibre-gl": "6.13.0",
56
56
  "svelte": "^5.57.2",
57
- "svelte-check": "^4.3.4"
57
+ "svelte-check": "^4.7.7"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "svelte-check --tsconfig ./tsconfig.json",
@@ -33,6 +33,7 @@
33
33
  attachTileflowFairUseNotice,
34
34
  attachTileflowMap3D,
35
35
  attachTileflowMapLifecycle,
36
+ attachTileflowNauticalLights,
36
37
  attachTileflowNotices,
37
38
  createTileflowSessionStarter,
38
39
  createTileflowThemeController,
@@ -44,6 +45,8 @@
44
45
  registerTileflowPmtilesProtocol,
45
46
  registerTileflowWorldRequestBridge,
46
47
  subscribeTileflowSystemColorScheme,
48
+ tileflowMaxPitch,
49
+ tileflowCanvasContextAttributes,
47
50
  type TileflowFairUseNoticeController,
48
51
  type TileflowMapLifecycleAttachment,
49
52
  type TileflowThemeController,
@@ -586,9 +589,11 @@
586
589
  });
587
590
  const maplibreMap = new maplibregl.Map({
588
591
  ...mapOptions,
592
+ canvasContextAttributes: tileflowCanvasContextAttributes(mapOptions?.canvasContextAttributes),
589
593
  attributionControl: mapOptions?.attributionControl ?? {compact: true},
590
594
  // Tileflow's compiled styles are validated when they are built.
591
595
  validateStyle: mapOptions?.validateStyle ?? false,
596
+ maxPitch: mapOptions?.maxPitch ?? tileflowMaxPitch,
592
597
  bearing: resolvedBearing,
593
598
  center: resolvedCenter as LngLatLike,
594
599
  container: targetContainer,
@@ -608,6 +613,7 @@
608
613
  mapInstance = maplibreMap;
609
614
  attachTileflowAtmosphere(maplibreMap);
610
615
  attachTileflowNotices(maplibreMap);
616
+ attachTileflowNauticalLights(maplibreMap);
611
617
  themeController =
612
618
  runtime.theme === undefined
613
619
  ? null