Skip to content

PostGIS Mapviewer - Ability to add custom layers (RM #3646) #2073

@dpage

Description

@dpage

Issue migrated from Redmine: https://redmine.postgresql.org/issues/3646
Originally created by Atle Frenvik Sveen at 2018-09-14 07:39:01 UTC.

The current list of available map background layers in the mapviever is hardcoded.

I would like to be able to enter new background-tile-layers in the preferences-setting so that I can use these in the MapViewer.

In addition I would like to be able to re-order the list in order to determine default background layer.

Work to do:

  1. Make sqleditor/geometry_viewer.js fetch the list of background layers from the preferences-object

  2. Add a preferences-type of "list" so that new layers with name, tile-url, and attribution-text can be added
    2.1 This should also support re-ordering of the list
    2.2 And Deletion of elements
    2.3 And edit of existing elements

  3. Add the now hard-coded layers as defaults
    3.1 Possibly make these non-deleteable

  4. Figure out where in the preferences-menu to add this
    4.1 I suggest that it is put on a new subitem (Mapviewer?) under "SQL Editor"

I will try to implement this myself, but all input is welcome. I cannot guarantee any timeframe for this.

Sugg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions