Having exhausted other search options, I was hoping someone might know of a way to change the pgAdmin geometry viewer default tile server? It tries to bring up the OSM one, but we are behind a firewall and it cannot be accessed. However, we have an internal one that could be used. Is this possible?


The tile servers are hardcoded in web/pgadmin/static/js/sqleditor/geometry_viewer.js.

In an installed pgAdmin, you can find this file in a minified form in .../web/pgadmin/static/js/generated/sqleditor.js; search for "tile.openstreetmap.org".

If you cannot edit that file, then you might be able to configure your internal DNS to redirect a|b|c.tile.openstreetmap.org to your own server.

  • Found the file and was able to modify it to point to our OSM tile server. Thanks very much!
    – ringraham
    Sep 22 '21 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.