@trailstash/ultra 3.8.1 → 3.8.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.
@@ -49,20 +49,30 @@ const layers = (source) => [
49
49
  "icon-halo-width": 1,
50
50
  },
51
51
  },
52
- /*
53
52
  {
54
53
  id: `${source}-gpx-poi`,
55
54
  type: "symbol",
56
55
  source,
57
56
  filter: ["==", ["geometry-type"], "Point"],
58
57
  layout: {
59
- "icon-overlap": "always",
60
- "icon-size": 0.5,
61
58
  "icon-anchor": "bottom",
62
- "icon-image": ["concat", "https://corsproxy.io/?", ["get", "icon"]],
59
+ "icon-image": "maki:marker",
60
+ "icon-overlap": "always",
61
+ "text-field": ["get", "name"],
62
+ "text-variable-anchor": ["bottom-left", "bottom-right"],
63
+ "text-justify": "auto",
64
+ "text-radial-offset": 1,
65
+ },
66
+ paint: {
67
+ "icon-color": "rgba(255, 255, 51, 1)",
68
+ "icon-halo-color": "rgba(51, 51, 51, 0.8)",
69
+ "icon-halo-width": 1,
70
+ "icon-halo-blur": 2,
71
+ "text-color": "#333",
72
+ "text-halo-color": "rgba(255,255,255,0.8)",
73
+ "text-halo-width": 1.5,
63
74
  },
64
75
  },
65
- */
66
76
  ];
67
77
 
68
78
  const detect = async (query) => {
@@ -1,3 +1,5 @@
1
+ import { fetchIfHTTPS } from "./util.js";
2
+
1
3
  const layers = (source) => [
2
4
  {
3
5
  id: `${source}-raster`,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.8.1",
6
+ "version": "3.8.3",
7
7
  "description": "A web based tool for making MapLibre GL maps with data from sources such as Overpass, GeoJSON, GPX, KML, TCX, etc",
8
8
  "main": "index.js",
9
9
  "scripts": {