What could be wrong if I can see time range, branding and strikes count on added map but strikes are missing?
config.php related to map
What could be wrong if I can see time range, branding and strikes count on added map but strikes are missing?
config.php related to map
Perhaps you must to specify update interval
$_BO['mapimg'][2]['upd_intv'] = 15;
Didn't help. ![]()
It must be something tiny and obvious.
Hi,
why is everything in one line? Can we see an example or link to your page?
Regards
Tobias
This forum puts everything in one line. It's separate in config.php.
I cannot give you link to portal as it's running on internal network but I can show you screenshot.

1. At first, a note: Numbers as identifiers shouldn't be used any more, simply use a text. It's easier to manage.
2. When 'trange' is an array, then 'upd_intv' has to be an array to (same count).
3. You forgot the color definition.
The whole code:
//Maps
$_BO['mapimg']['baltija']['name'] = 'Baltija';
$_BO['mapimg']['baltija']['menu'] = true;
$_BO['mapimg']['baltija']['archive'] = true;
$_BO['mapimg']['baltija']['file'] = '/maps_own/Baltija.png';
$_BO['mapimg']['baltija']['coord'] = array(59.93, 28.69, 53.8, 20.13);
$_BO['mapimg']['baltija']['trange'] = array(2, 0.25, 6, 12, 24, 48);
$_BO['mapimg']['baltija']['upd_intv'] = array(15, 15, 15, 15, 15, 15);
//Standard colors
$_BO['mapimg']['baltija']['col'] = $_BO['tpl_color']['standard'];
//Or define your own colors
$_BO['mapimg']['baltija']['col'] = array('ff05', 'fc05', 'f905', 'f505');
Alles anzeigen
See here about the colors.
Still no luck! Sorry, this forum still puts all in one line even in code or php bbcode. Maybe because of me using Linux.
<?php
/*******************************************************************//* Main Config file for MyBlitzortung *//* *//* See file "includes/default_settings.inc.php" for more *//* information about the settings. *//* *//* Never put any characters, spaces etc. before "<?php" or *//* otherwise all images won't work! *//*******************************************************************/
//Databasedefine("BO_DB_USER", "xxxxx");define("BO_DB_PASS", "xxxxx");define("BO_DB_NAME", "myblitzortung");define("BO_DB_HOST", "localhost");define("BO_DB_PREF", "bo_");//experimental indexdefine("BO_DB_USE_LATLON_TIME_INDEX", true);
//The update secretdefine('BO_UPDATE_SECRET', 'xxx');
//Station Settingsdefine("BO_LAT", 56.9745);define("BO_LON", 23.9532);#define("BO_STATION_NAME", "Jurmala");
//blitzortung.org Logindefine("BO_USER", "xxxxx");define("BO_PASS", "xxxxx");define("BO_REGION", "1");
//Your timezonedefine("BO_TIMEZONE", "Europe/Riga");
//To see error messages, enable this (set to true)define("BO_DEBUG", true);
//Tile cachedefine("BO_CACHE_DISABLE", true);define("BO_CACHE_SUBDIRS", true);
//purges tiles when older that specified value (hours)define("BO_CACHE_PURGE_TILES_HOURS",24);
//global purge settingsdefine("BO_PURGE_ENABLE",false);
define("BO_OWN_COPYRIGHT", 'Edgars Buss');
define("BO_RADIUS", 220);define("BO_MAX_ZOOM_IN",'16');
define("BO_MAP_MANUAL_TIME_ENABLE", true);define("BO_MAP_MANUAL_TIME_MAX_HOURS", 24);
//Experimental polarity checkdefine("BO_EXPERIMENTAL_POLARITY_CHECK",false);
//displaying of strikes and legenddefine("BO_MAP_STRIKE_SIZE", 4);define("BO_MAP_STRIKE_CIRCLE_SIZE", 8);define("BO_MAP_STRIKE_SHOW_CIRCLE_ZOOM", 10);define("BO_MAP_STRIKE_SHOW_DEVIATION_ZOOM", 14);//define("BO_MAP_LEGEND_WIDTH", 300);//define("BO_MAP_LEGEND_FONTSIZE", 2);
//Tile dimensions (pixels)define("BO_TILE_SIZE", 256);define("BO_IMAGE_USE_TRUECOLOR", true);
define("BO_ENABLE_LONGTIME_ALL", true);
//Statistics for all stationsdefine("BO_STATISTICS_ALL_STATIONS", 2);
define("BO_GRAPH_STAT_MAX_DISTANCE", 3000);
// Calculate tracksdefine("BO_TRACKS_SCANTIME", 1);define("BO_UP_INTVL_TRACKS", 5);
//Enable strike density calculationdefine("BO_ENABLE_ARCHIVE_MAPS", true);define("BO_ENABLE_ARCHIVE_SEARCH", true);define("BO_ENABLE_ARCHIVE_SIGNALS", true);define("BO_ENABLE_DENSITIES", true);define("BO_CALC_DENSITIES", true);define("BO_CALC_DENSITIES_CURRENT", true);define("BO_CALC_DENSITIES_CURRENT_ALL", true);
// Show new stationsdefine("BO_STATISTICS_SHOW_NEW_STATIONS", 0);
// Google map 12h style$_BO['tpl_gmap']['last12h']['tstart'] = 720;$_BO['tpl_gmap']['last12h']['trange'] = 720;$_BO['tpl_gmap']['last12h']['upd_intv'] = 1;$_BO['tpl_gmap']['last12h']['default_show'] = true;$_BO['tpl_gmap']['last12h']['sel_name'] = 'last 12h';
$_BO['tpl_gmap']['last12h']['col'][] = array(255, 255, 0);$_BO['tpl_gmap']['last12h']['col'][] = array(255, 240, 0);$_BO['tpl_gmap']['last12h']['col'][] = array(255, 225, 0);$_BO['tpl_gmap']['last12h']['col'][] = array(250, 190, 0);$_BO['tpl_gmap']['last12h']['col'][] = array(245, 170, 10);$_BO['tpl_gmap']['last12h']['col'][] = array(240, 150, 10);$_BO['tpl_gmap']['last12h']['col'][] = array(235, 130, 10);$_BO['tpl_gmap']['last12h']['col'][] = array(230, 110, 10);$_BO['tpl_gmap']['last12h']['col'][] = array(225, 90, 10);$_BO['tpl_gmap']['last12h']['col'][] = array(220, 70, 10);for ($i=0;$i<20;$i++) $_BO['tpl_gmap']['last12h']['col'][] = array(200-150*$i/20, 10+40*$i/20, 50+200*$i/20);
$_BO['mapcfg'][3] = $_BO['tpl_gmap']['last12h'];
//Disable default maps$_BO['mapimg'][2]['name'] = array();
//Maps
// Baltija$_BO['mapimg']['baltija']['name'] = 'Baltija';$_BO['mapimg']['baltija']['menu'] = true;$_BO['mapimg']['baltija']['archive'] = true;$_BO['mapimg']['baltija']['file'] = '/maps_own/Baltija.png';$_BO['mapimg']['baltija']['coord'] = array(59.93, 28.69, 53.8, 20.13);$_BO['mapimg']['baltija']['trange'] = array(2, 0.25, 6, 12, 24, 48);$_BO['mapimg']['baltija']['upd_intv'] = array(5, 1, 15, 15, 15, 15);$_BO['mapimg']['baltija']['col'] = $_BO['tpl_color']['standard'];
$_BO['imgmap']['baltija']['density'] = true;$_BO['imgmap']['baltija']['density_blocksize'] = 2;$_BO['imgmap']['baltija']['density_colors'] = $_BO['density_colors'];
//Europe$_BO['imgmap'][0]['density'] = true;$_BO['imgmap'][0]['density_blocksize'] = 2;$_BO['imgmap'][0]['density_colors'] = $_BO['density_colors'];
?>
Alles anzeigen
Oh, 'point_style' is missing too. Forgot to mention, that you should write it like this:
$_BO['mapimg']['baltija'] = $_BO['tpl_imgmap_default'];
$_BO['mapimg']['baltija']['name'] = 'Baltija';
$_BO['mapimg']['baltija']['menu'] = true;
$_BO['mapimg']['baltija']['archive'] = true;
$_BO['mapimg']['baltija']['file'] = '/maps_own/Baltija.png';
$_BO['mapimg']['baltija']['coord'] = array(59.93, 28.69, 53.8, 20.13);
$_BO['mapimg']['baltija']['trange'] = array(2, 0.25, 6, 12, 24, 48);
$_BO['mapimg']['baltija']['upd_intv'] = array(5, 1, 15, 15, 15, 15);
$_BO['mapimg']['baltija']['density'] = true;
$_BO['mapimg']['baltija']['density_blocksize'] = 2;
$_BO['mapimg']['baltija']['density_colors'] = $_BO['density_colors'];
Alles anzeigen
The first line defines some important default settings. I should improve the documentation for that ![]()
'Thank you! Finally I can see strikes.
© Wetter-Board 2004-2026