1. Startseite
  2. Portal
  3. Forum
    1. Unerledigte Themen
  4. Galerie
    1. Alben
    2. Karte
  5. Lexikon
    1. Letzte Änderungen
  6. Kartensysteme
    1. Europaanalyse
    2. Gewitteranalyse
    3. Nowcast
  7. FAQ
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Galerie
  • Lexikon
  • Seiten
  • FAQ
  • Erweiterte Suche
  1. Forum
  2. Archivraum
  3. Blitzortung - Archiv
  4. MyBlitzortung - english

map of Belgium

  • Joel
  • 3. April 2012 um 01:06
  • Erledigt
  • Joel
    Gast
    • 3. April 2012 um 01:06
    • #1

    Hello,

    How can I add the map of Belgium or Benelux ?

    It seems no template exists

    Kinds regards,
    Joël.

  • flc85
    Gast
    • 3. April 2012 um 06:47
    • #2

    You must to do it yourself, see here
    The map can be made by the Blitzortung map generator or find in internet,it must be rectangular type or mercator projection,you must to know all the coordinates (Nord,sud,east and west).

  • Joel
    Gast
    • 9. Juni 2012 um 23:26
    • #3

    OK, thanks, the result is here :

    And the code :

    $_BO['mapimg'][103] = $_BO['tpl_imgmap_default'];
    $_BO['mapimg'][103]['name'] = 'Belgium';
    $_BO['mapimg'][103]['menu'] = true;
    $_BO['mapimg'][103]['archive'] = true;
    $_BO['mapimg'][103]['file'] = 'map-belgium-64.png';
    $_BO['mapimg'][103]['coord'] = array(51.95, 7, 48.72, 1.95);

    $_BO['mapimg'][103]['show_station'] = array(5, 155,80,155,true);

    $_BO['mapimg'][103]['cities'][1] = $_BO['points']['whitered1'];
    $_BO['mapimg'][103]['cities'][2] = $_BO['points']['whitered1'];
    $_BO['mapimg'][103]['cities'][5] = $_BO['points']['whitered1'];
    $_BO['mapimg'][103]['cities'][6] = $_BO['points']['whitered1'];

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

    Can someone confirm this code is right ?

    The stations are not displayed, did I do something wrong ?

    Thanks in advance
    Joël.

  • TuinmanTom
    Gast
    • 10. Juni 2012 um 14:24
    • #4

    I tried a map of belgium too (see other thread). But I like yours too. Is it ok that I use it?

  • Joel
    Gast
    • 10. Juni 2012 um 15:37
    • #5
    Zitat von TuinmanTom

    I tried a map of belgium too (see other thread). But I like yours too. Is it ok that I use it?


    Yes, of course.

    The png is here

    If you want the main cities to be displayed, you have to adapt the cities.txt file a little bit : for each city to be displayed, replace the last character (0) by 1
    I suggest the head of provinces, plus Tournai and Charleroi because province of Hainaut is very large.

  • TuinmanTom
    Gast
    • 10. Juni 2012 um 17:39
    • #6

    Joel,

    The stations are displayed, but they are just a "dot" which is a very small pixel. This is good for the Europe map. For the Belgium map I would use this:

    $_BO['mapimg']['belgium']['stations']['A'] = $_BO['points']['stations_active'];
    $_BO['mapimg']['belgium']['stations']['O'] = $_BO['points']['stations_offline'];
    $_BO['mapimg']['belgium']['stations']['V'] = $_BO['points']['stations_nogps'];
    $_BO['mapimg']['belgium']['stations']['-'] = $_BO['points']['stations_inactive'];

    (so stations_active instead of stations_dots_active).

  • noodweer
    Gast
    • 10. Juni 2012 um 19:18
    • #7

    Joel!

    This is great stuff, thanks for sharing! I placed the code into my config.php but how do i make the map visible? i'm getting an error 'couldn't find the map'

  • Joel
    Gast
    • 10. Juni 2012 um 19:35
    • #8
    Zitat von TuinmanTom

    Joel,

    The stations are displayed, but they are just a "dot" which is a very small pixel. This is good for the Europe map. For the Belgium map I would use this:

    $_BO['mapimg']['belgium']['stations']['A'] = $_BO['points']['stations_active'];
    $_BO['mapimg']['belgium']['stations']['O'] = $_BO['points']['stations_offline'];
    $_BO['mapimg']['belgium']['stations']['V'] = $_BO['points']['stations_nogps'];
    $_BO['mapimg']['belgium']['stations']['-'] = $_BO['points']['stations_inactive'];

    (so stations_active instead of stations_dots_active).

    Great, thank you

    en bedankt ;)

  • Joel
    Gast
    • 10. Juni 2012 um 19:36
    • #9
    Zitat von noodweer

    Joel!

    This is great stuff, thanks for sharing! I placed the code into my config.php but how do i make the map visible? i'm getting an error 'couldn't find the map'


    Did you put the map into the "images" subfolder of the myblitzortung folder ?

    Edit : if you put the map into the maps_europe folder, you must adapt the folloging line : $_BO['mapimg'][103]['file'] = 'map-belgium-64.png';
    like this : $_BO['mapimg'][103]['file'] = 'maps_europe/map-belgium-64.png';

  • noodweer
    Gast
    • 10. Juni 2012 um 20:49
    • #10

    Hi Joel,

    That worked! I put the PNG image into the folder images and now i see Belgium :). Can u give me some tips for my config.php? When i have much visitors on , my server host complains about the high server load of the Blitzortung script

    Het mag ook in het Nederlands via een privé :)

    Nicolas

  • Joel
    Gast
    • 11. Juni 2012 um 19:57
    • #11

    I'm afraid I cannot help very much because I'm a newbie too.

    My provider is OVH.com in France. With the PRO hosting solution you receive unlimited traffic and a 500 MB database

  • noodweer
    Gast
    • 12. Juni 2012 um 18:40
    • #12

    Thanks Joel for the information!

    I'd like to change the images of the strikes because they are very smal on the map right now. Could u help me with editing it?

    Example:

    Regards,

    Nicolas

Radar

Regenradar

Link-Box

Zellenabstand und Zelleninnenabstand in Tabellen
Wegweiser
Kartenanlyse
Webcam
  1. Datenschutzerklärung
  2. Impressum
  3. Nutzungsbedingungen
  4. Kontakt

Partner
Viktor´s Supportboard
Besucherzaehler



Community-Software: WoltLab Suite™ 6.2.9
© Wetter-Board 2004-2026