Thread: feature request (add custom map layer) for geometry viewer panel

feature request (add custom map layer) for geometry viewer panel

From
August White
Date:
Dear Developers,
I've noticed recently that the geometry viewer panel has been added to the panel list, which can be used to check polygon or point in a convenient way. But there is a little problem when using the feature in China. As most people known, the coordination in China has some offset, as a consequence, the point in the map was not at its exact position when using the coordination in OpenStreetMap which is the build-in map in PgAdmin. 
I found that PgAdmin is using the leaflet as its map api, which could add layers as the user need. I want to add Chinese Compatible layer (like autonavi.com) to PgAdmin Geometry viewer panel, is there any convenient method to do that? (As far as I known, the only way is to modify file "/web/pgadmin/static/js/sqleditor/geometry_viewer.js" to achieve this)

Thanks very much.
August White

Re: feature request (add custom map layer) for geometry viewer panel

From
Atle Frenvik Sveen
Date:
Hi! 

I started on the task of creating a GUI for adding custom tile layers to the map viewer a while ago:
https://www.mail-archive.com/pgadmin-hackers@lists.postgresql.org/msg04726.html

Unfortunately, I lost the steam when only some minor changes was left. Unfortunately, I cannot promise that I'll finish
thisup anytime soon, but it sure would be a nice addition, and would probably be the best solution to your issue as
well.
 

If anyone wants to finish this up: be my guest. Otherwise I'll try to get some hours in and finish this up before the
yearends. 
 

-Atle 

-- 
  Atle Frenvik Sveen
  atle@frenviksveen.net
  45278689
  atlefren.net

On Tue, Nov 13, 2018, at 14:49, August White wrote:
> Dear Developers,
> I've noticed recently that the geometry viewer panel has been added to the
> panel list, which can be used to check polygon or point in a convenient
> way. But there is a little problem when using the feature in China. As most
> people known, the coordination in China has some offset, as a consequence,
> the point in the map was not at its exact position when using the
> coordination in OpenStreetMap which is the build-in map in PgAdmin.
> I found that PgAdmin is using the leaflet as its map api, which could add
> layers as the user need. I want to add Chinese Compatible layer (like
> autonavi.com) to PgAdmin Geometry viewer panel, is there any convenient
> method to do that? (As far as I known, the only way is to modify file
> "/web/pgadmin/static/js/sqleditor/geometry_viewer.js" to achieve this)
> 
> Thanks very much.
> August White