@trailstash/ultra 3.8.0 → 3.8.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.
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  title: Query OSM using QLever
3
- description: Load OSM data from the QLever osm-planet dataset. The sparql provider uses https://qlever.cs.uni-freiburg.de/api/osm-planet by default.
3
+ description: Load OSM data from the QLever osm-planet dataset.
4
4
  type: sparql
5
+ server: https://qlever.cs.uni-freiburg.de/api/osm-planet
5
6
  options:
6
7
  zoom: -0.1
7
8
  center: [0, 30]
package/docs/yaml.md CHANGED
@@ -17,7 +17,7 @@ style: https://example.com/style.json
17
17
 
18
18
  ## `server`
19
19
 
20
- Use a different Overpass API server.
20
+ Use a different Overpass or SPARQL server.
21
21
 
22
22
  Example:
23
23
 
@@ -131,8 +131,9 @@ Detected if:
131
131
 
132
132
  ### `sparql`
133
133
 
134
- Make a [GeoSPARQL](https://www.ogc.org/publications/standard/geosparql/) query to load data. By
135
- default, uses the [Qlever osm-planet](https://qlever.cs.uni-freiburg.de/osm-planet) server.
134
+ Make a [GeoSPARQL](https://www.ogc.org/publications/standard/geosparql/) query to load data.
135
+
136
+ **Note:** requrires you to specify a [server](#server).
136
137
 
137
138
  Examples:
138
139
 
@@ -1,3 +1,5 @@
1
+ import { fetchIfHTTPS } from "./util.js";
2
+
1
3
  const layers = (source) => [
2
4
  {
3
5
  id: `${source}-raster`,
@@ -21,7 +21,7 @@ const OSM_SERVERS = new Set([
21
21
 
22
22
  const source = async function (query, controller, { server, bounds }) {
23
23
  if (!server) {
24
- server = "https://qlever.cs.uni-freiburg.de/api/osm-planet";
24
+ throw new Error("No SPARQL server endpoint specified");
25
25
  }
26
26
  const resp = await fetch(server, {
27
27
  method: "POST",
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.8.0",
6
+ "version": "3.8.2",
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": {