Configuration: Cities and regions

Cities

For automatic display of cities, copy the file cities.txt from Edmunds Lightning Viewer to the main directory of MyBlitzortung. Then import the cities in the user area.

In this file there are numbers assigned to the cities ( 0 to 4 ) , whereas these numbers stand for certain categories (City, Capital). At some cities the boundaries are specified.. MyBlitzortung increases the city type number by four.

Adding cities to a map:

$_BO['mapimg'][x]['cities'][y] = Marker;

Here y stands for a city-type. So you can assign each city type a different marker.

$_BO['mapimg'][x]['cities'][1] = $_BO['points']['whitered1'];
$_BO['mapimg'][x]['cities'][5] = $_BO['points']['whitered1'];
$_BO['mapimg'][x]['cities'][6] = $_BO['points']['somepoint'];

Example

Default map of Western Europe:

Stations

As well as cities, also stations can be drawn in the map. Stations can be in status ‘A’ (active), ‘O’ (offline) or ‘V’ (no GPS) .


$_BO['mapimg'][x]['stations']['A'] = $_BO['points']['stations_dots_active'];
$_BO['mapimg'][x]['stations']['O'] = $_BO['points']['stations_dots_offline'];
$_BO['mapimg'][x]['stations']['V'] = $_BO['points']['stations_dots_nogps'];

Regions

With regions, you can display statistics only for a specific country or State. When regions are used, the identifier can be a name ('germany', 'bavaria', 'france').

  • $_BO['region']['name']['name'] = 'My Country';Name of region, for example, Germany
  • $_BO['region']['name']['visible'] = true;Visible
  • $_BO['region']['name']['rect_add'] = array(
    55.02, 12.08, 47.2, 5.87,
    54.8, 15.08, 50.2, 12.08,
    50.2, 13.08, 47.4, 12.08,
    .....
    );
    Rectangles, that define the region. Coordinates in the order: North, East, South, West.

  • $_BO['region']['name']['rect_rem'] = array( 56, 8.2, 53.9, 5,
    56, 6.7, 52, 5,
    49.1, 7.5, 47, 5,
    49.1, 7.5, 47, 5,
    .....
    );
    Rectangles, which remove parts of the area defined above. Coordinates in the order: North, East, South, West.

When you add a text like “&mark=germany” to the URL of a map, then the rectangles are drawn in the image. Example 1 / Example 2