This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git


The following commit(s) were added to refs/heads/main by this push:
     new 4e19e5ba Update commands and instructions (#854)
4e19e5ba is described below

commit 4e19e5ba79ca1eafc9db9fc4a0f72beb5d75bd0d
Author: Bertil Chapuis <[email protected]>
AuthorDate: Fri May 10 22:17:01 2024 +0200

    Update commands and instructions (#854)
---
 basemap/README.md | 15 ++++++++++++---
 basemap/config.js |  6 +++---
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/basemap/README.md b/basemap/README.md
index 07833668..3f90a06a 100644
--- a/basemap/README.md
+++ b/basemap/README.md
@@ -34,19 +34,28 @@ A PostgreSQL database with the PostGIS extension should be 
accessible with the f
 jdbc:postgresql://localhost:5432/baremaps?user=baremaps&password=baremaps
 ```
 
-## Getting started
+## Importing the data
 
 Assuming that the necessary requirements have been installed, the database can 
be populated with the following command.
 
 ```
-baremaps workflow execute --file workflow.js
+baremaps workflow execute --file import.js
 ```
 
+## Updating the data
+
+The data can be updated with the following command. The update workflow will 
download the latest changes from the OpenStreetMap API and apply them to the 
database.
+
+```
+baremaps workflow execute --file update.js
+```
+
+## Serving the tiles and the style in dev mode
+
 The development server can be started with the following command.
 
 ```
 baremaps map dev --log-level DEBUG \
-  --database 
'jdbc:postgresql://localhost:5432/baremaps?user=baremaps&password=baremaps' \
   --tileset 'tileset.js' \
   --style 'style.js'
 ```
diff --git a/basemap/config.js b/basemap/config.js
index 8d045a0d..b5f1deca 100644
--- a/basemap/config.js
+++ b/basemap/config.js
@@ -18,7 +18,7 @@ export default {
     "host": "http://localhost:9000";,
     "database": 
"jdbc:postgresql://localhost:5432/baremaps?&user=baremaps&password=baremaps",
     "osmPbfUrl": 
"https://download.geofabrik.de/europe/switzerland-latest.osm.pbf";,
-    "center": [6.6323, 46.5197],
-    "bounds": [6.02260949059, 45.7769477403, 10.4427014502, 47.8308275417],
-    "zoom": 14,
+    "center": [0, 0],
+    "bounds": [-180, -85, 180, 85],
+    "zoom": 2,
 }
\ No newline at end of file

Reply via email to