question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update OSM tiles server

See original GitHub issue

System information:

  • Operating system : Linux
  • DBeaver version : 6.2.2 and greater
  • Additional extensions : GIS viewer, H2GIS

Describe the problem you’re observing:

The leaflet viewer uses the mapbox server to provide tiles. It seems that the tiles are not up to date. See the two screenshots one in dbeaver the other from openstreetmap.org

Steps to reproduce, if exist:

Run the following query on a H2GIS connection.

SELECT st_setsrid('LINESTRING (450735.8542908922 5407155.854499144, 450733.1367910038 5407156.567704182, 450735.8542908922 5407155.854499144)'::geometry, 32631) AS the_geom

and open the map viewer. You will see the diff.

Proposal

In org.jkiss.dbeaver.data.gis.view/web/view_template.html replace

  let baseLayersObj = {
                'Street': L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
                    maxZoom: 18,
                    attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/" target="_new">OpenStreetMap</a> contributors ' +
                        '<a href="https://creativecommons.org/licenses/by-sa/2.0/" target="_new">CC-BY-SA</a>, ' +
                        'Imagery <a href="https://www.mapbox.com/" target="_new">Mapbox</a>',
                    id: 'mapbox.streets'
                }),

by


let baseLayersObj = {
                'Street': L.tileLayer(''https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'', {
                    maxZoom: 18,
                   attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
                }),

OSM osm

DBeaver dbeaver_osm

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Nov 27, 2019

image

0reactions
MihailGershkovichcommented, Aug 12, 2020

Will there be any way to configure a specific tile-server? We are hosting our own tile-server (OSM Data + Geoserver) and will soon start using custom styles there. Would be nice if we could use it directly in DBeaver.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I periodically update my tile server and keep it up to date
P.s. I read that Mapnik has tools that pulls data from the OpenStreetMap periodically but could not figure out how to get it...
Read more >
Periodically updating OpenStreetMap tile server to keep it up ...
The solution can be found at How do I periodically update my tile server and keep it up to date in the OpenStreetMap...
Read more >
Updating your database as people edit OpenStreetMap
The script to perform the update can be added to root's crontab. First, amend update_tiles.sh to do some error checking at startup, and...
Read more >
openstreetmap-tile-server/README.md at master - GitHub
This container allows you to easily set up an OpenStreetMap PNG tile server given a .osm.pbf file. It is based on the latest...
Read more >
Installing an OpenStreetMap Tile Server on Ubuntu
The OSM Tile Server is a web server specialized in delivering raster maps, ... This procedure is updated to the version of OpenStreetMap...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found