Update OSM tiles server
See original GitHub issueSystem 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 © <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: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}),
OSM
DBeaver
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.