Background maps

<< Click to Display Table of Contents >>

Background maps

Background maps allow raster and vector graphics to be grouped so that they can be shown and hidden together.

There are several types of background maps. This section describes how raster and WMS maps can be configured as background maps.

 

The following parameters are set:

is_background_map=true - Marks that this raster should be treated as a background map.

background_map_unit=meter - Unit level for the raster map. Only meters are supported, which means that all geographic map products will have access to this background map.

background_map_icon_path=... - Path to the image file used as icon in the user interface. The path must be accessible from the client. Place the image in the catalog tomcat-site/images/

The icon image should be 202x130 pixels.

background_map_member_id=... - Unique ID used to identify the background map in the group.

 

Example for raster in raster_site.conf:

[bios.plugin.raster.TiledRasterPlugin*Ortofoto]

is_background_map=true

background_map_unit=meter

background_map_icon_path=backgroundMap/ortofoto.png

background_map_member_id=ortofoto_2024

 

Example for WMS in a separate configuration file, for example, wms_servers.conf:

[bios.plugin.raster.WMSPlugin*Kulturminne]

is_background_map=true

background_map_unit=meter

background_map_icon_path=esri-world-imagery.png

background_map_member_id=mina_kartor

 

Raster configuartion

Own configuration of raster allows you to control, for example, products and scale areas. The raster is placed in tomcat-site\raster or another directory pointed out in local_settings.conf. In the first directory is the file info.conf which contains data about the raster. The file should remain there but the following parameters are copied to tomcat-site\fpp_raster.conf (or similar name):

[app.offline.plugin.ShowRasterPlugin*Ortofoto]

The plugin name that is in info.conf

file=Ortofoto

The name of the directory in which the raster is located

products=1002070,1002120

Products, shown in all unless specified

name=Orto 2006

The name that appears in the theme

coordsys=ST74

Coordinate system for the raster

zorder=-1000

Drawing order for the raster, lowest number is drawn at the bottom

num_files=1

Number of directories the raster is divided into

scale_from=0

Scale from

scale_to=50000

Scale to

start_visible=true

  Whether the raster should be visible or not from the start