PG User Map Administration Interface

From MapbenderWiki

Jump to: navigation, search

Contents

How to Edit the Interface

The properties of the HTML control elements of the map interface are read from the Mapbender database. This includes the position (top, left, width and heigth), image src, type of tag and mouse events. You can use the web administration front end to select each element and change these properties. Depending on the type of control element you can change different parameters.

Step by Step Example

As an example the following steps describe how to change the map size.

  1. Log on to the administration interface as pg_user_map_admin and !Dpg_U-m%"
  2. Open the administration interface admin_pg_user_map_layout
  3. Klick on the link Edit GUI Elements.
  4. Select the interface you want to edit (for this public test there is just one).
  5. On the right side of the screen you see a list of all the elements contained in this interface.
  6. Select the element mapframe1 by clicking on the corresponding option button. All attributes of the mapframe are copied to the fields on the left hand side.
  7. Change the value in the field Width to 800.
  8. Click the save button and confirm the prompt with OK.
  9. Change the value in the field Height to 400.
  10. Click the save button and confirm the prompt with OK.
  11. Click on the show-button. A new window will open and display the modified interface.

There is no undo button, so watch out for what you are doing. As this is a public access it might happen that somebody destroys the application. Never mind, just mailto:info@mapbender.org and we will restore the original version. You can use the SQL button to make a copy of your GUI and dump it to your own Mapbender database.

Please observe that some elements have dependencies with other elements. This is commented in the field Requires (right at the bottom), this comment is contained for human readability only, there is no code to interpret this value.

Element Variables

Some elements need variables to work correctly. Instead of having to edit them in the source code they are read from the database and can be edited using the web administration interface. Click on the name of the corresponding element in the right list to open the window where the values can be edited.

Example: Vertical Tabs

As an example try out the vertical tabs element (tabs). This module needs several variables to work. There are three arrays that are read to configure the vertical tabs. The following list shows the varibales needed to confige one tab (here the topmost).

  • tab_frameHeight[0] contains the height of the register when opened
  • tab_ids[0] contains the name of the module that is displayed in this tab (TreeGde)
  • tab_titles[0] contains the caption of the tab register

Find the details about other elements on the Modules page.

Public interface

Please observe that this account is public and anybody can log in at any time and do any kind of configuration. It might even happen that you are logged in and somebody else is using the same account (as it is a public account) and overwrites your changes. The hopes are that this is way to uninterersting to most people so that there will be no collisions in editing. Anyway, if this map interface is to be moved to the PostgreSQL hompage you can manage administration and access control as you like.

Views
Personal tools