@icgcat/toggle3d 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/README.md +16 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,21 @@
1
+ <div style="text-align:center">
2
+ <p>
3
+ <img src="https://eines.icgc.cat/recursos/logos/icgc_logo_color.png" alt="ICGC Logo" width="250px">
4
+ </p>
5
+ </div>
6
+
7
+ <div style="text-align:center">
8
+
9
+ [![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg?style=flat)](LICENSE.txt)
10
+ [![Version](https://img.shields.io/npm/v/@icgcat/toggle3d?style=flat)](https://www.npmjs.com/package/@icgcat/toggle3d)
11
+ [![X](https://img.shields.io/twitter/follow/icgcat?style=social)](https://twitter.com/icgcat)
12
+ <img src="https://eines.icgc.cat/recursos//images/JS-logo.svg" width="20px"/>
13
+ </div>
14
+
1
15
  # 3D Terrain Toggle Component
2
16
 
17
+ `version 0.0.1`
18
+
3
19
  This Svelte component provides a button to toggle between 2D and 3D terrain visualization on a MapLibre-based map. The component dynamically adjusts terrain sources based on the map's location and zoom level.
4
20
 
5
21
  ---
@@ -73,13 +89,6 @@ The component uses the following terrain sources:
73
89
  - **ICGC Terrain**: `urlTerrainIcgc` (specific to Catalonia).
74
90
  - **MapZen Terrain**: `urlTerrainMapZen` (global fallback).
75
91
 
76
- Ensure you define these URLs in your `config.js` file:
77
-
78
- ```javascript
79
- export const urlTerrainIcgc = "https://your-icgc-terrain-url/{z}/{x}/{y}.png";
80
- export const urlTerrainMapZen = "https://your-mapzen-terrain-url/{z}/{x}/{y}.png";
81
- ```
82
-
83
92
  ---
84
93
 
85
94
  ## API Methods
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgcat/toggle3d",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "main": "src/index.js",
5
5
  "type": "module",
6
6
  "scripts": {