Configuration: Maps

Note: Below, you have to replace the x by the corresponding map number.

Static maps

You can configure as many static maps as you want. For that, put a corresponding image in the folder 'images’ and set the variable $ _BO['mapimg'] . The file format is detected automatically (PNG, JPG, GIF). Mercator- and Equirectangular projection (plate carrée) is supported.

Note: All maps will be created “On-the-fly” , that means just when the map is requested. With a high number of strikes and / or an image with a high resolution the delivering of the image could take some time (depending on the speed of your server)!

  • $_BO['mapimg'][x]['name'] = 'Europe';Name of the map
  • $_BO['mapimg'][x]['menu'] = true;Set to true to display the map in the menu.
  • $_BO['mapimg'][x]['archive'] = true;If you want that map as a selection in the archive, set it to true.
  • $_BO['mapimg'][x]['file'] = 'map_europe.png';The name of the file, which you've copied into the images folder (relative path!).
  • $_BO['mapimg'][x]['coord'] = array(68.123, 50.345, 23.007, -20.987);The coordinates of the edges of the map in the right order (top, right, bottom, left or N, O, S, W). In the example, the upper edge of the image lies at 68.123° north latitude. The values can be determined, for example, with Google Earth.
  • $_BO['mapimg'][x]['trange'] = 2;
    $_BO['mapimg'][x]['trange'] = array(2, 0.25, 12, 24, 48);
    Defaukt time range in hours when the map is displayed on the main page (not in archive). If an array is specified, then these times can be selected from a menu. The standard time to be specified as the first value.

  • $_BO['mapimg'][x]['upd_intv'] = 15;How often the map should be renewed (minutes). Otherwise, it comes from the cache. If “trange” is an array, this must also be specified here.
  • $_BO['mapimg'][x]['textcolor'] = array(255,255,255);Textcolor (red, green, blue) Values ??from 0-255
  • $_BO['mapimg'][x]['legend'] = array(5, 100, 80, 4, 4, 1);Position and size of the color legend
    1. Number: Font size for the number (0 = No text)
    2. + 3. Number: Width / Height
    4. + 5. Number: x and y position seen from the bottom right corner
    6. Number: 1 for showing the axis, 0 for hiding it

  • $_BO['mapimg'][x]['legend_font'] = array(10, true, array('00000077', 0, '000000'),0,1); Font and color for the legend
  • $_BO['mapimg'][x]['col'][] = array(255, 255, 0);
    $_BO['mapimg'][x]['col'][] = array(255, 200, 0);
    ...
    Colors of the strikes. In newer versions hex values ??instead of the arrays can be used:
    $_BO['mapimg'][x]['col'] = array('ff05', 'fc05', 'f905', 'f505' ....);

  • $_BO['mapimg'][x]['col_smooth'] = 24; Automatically extend the number of colors to specified value.
  • $_BO['mapimg'][x]['show_station'] = array(5, 155,80,155,true);Wethter your station should be drawn on the map?
    1. Number: Size of the Cross
    2. – 4. Number: RGB (color settings)
    5. Position: Show place name, if not =false
  • $_BO['mapimg'][x]['point_style'] = array(2, 4, 'f008', 0); See colors and markers
  • $_BO['mapimg'][x]['top_font'] = array(9, true, array('fff1', 1, '000a'));
  • $_BO['mapimg'][x]['top_style'] = array(16, 2, '9999ff66', 1, 'ccf8');
  • $_BO['mapimg'][x]['bottom_font'] = ...;
    $_BO['mapimg'][x]['bottom_style'] = ...;
    Style for the footer. See top_font / top_style

  • $_BO['mapimg'][x]['image_footer'] = 'Your text'; Additional text in the footer (in the picture)
  • $_BO['mapimg'][x]['footer'] = 'Copyright Text';The specified text is displayed below the image, useful for information on copyright (For example, for maps that are from the Openstreetmap project). Outside the image on the page.
  • $_BO['mapimg'][x]['cities'] = ...; Display of cities
  • $_BO['mapimg'][x]['stations'] = ...; Display stations
  • $_BO['mapimg'][x]['file_time'] = 'dir/sat%Y%M%D-%h%m.png';File consistent with the end of the period of the displayed strikes. Path is relative to the ‘images’ directory. If file couldn't be found, the standard file is used. Timezone is always UTC.
    Placeholder:
    %Y: Year 4 digits
    %y: Year 2 digits
    %M: Month 2 digits
    %D: Day 2 digits
    %h: Hours 2 digits
    %m: Minutes 2 digits

  • $_BO['mapimg'][x]['file_time_search'] = array(15, 240, 30);Advanced search for images. All settings in minutes
    1. Item: Increment
    2. Item: Search period before end of time-range of strikes
    3. Item: Search period after end of time-range of strikes
  • $_BO['mapimg'][x]['dim'] = array(800, 600, '999', 0, 16);Dimension of the map. If this is present, then you can output a map without specifying an image ("blank" or transparent map).
    1./2. Item: Width and height in pixels
    3. Item: Background color
    4./5. Item: Offset in x- and y-coordinates (pixels)

  • $_BO['mapimg'][x]['resize'] = 800;The map will be shrinked/zoomed to the specified width in pixels.

Deprecated settings

The following options may not be supported in later versions.

  • $_BO['mapimg'][x]['textsize'] = 5;Size of the text (only 1-5 currently possible) – outdated!
  • $_BO['mapimg'][x]['point_type'] = 2;1 for filled circle, 2 for cross as as a strike – outdated!
  • $_BO['mapimg'][x]['point_size'] = 2;Size of the strike – outdated!