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

Add map

  • flc85
  • 31. August 2011 um 15:17
  • Erledigt
  • flc85
    Gast
    • 31. August 2011 um 15:17
    • #1

    What i must to put in the config.php to add somes maps with the 0.7 version ?

  • tobi
    Gast
    • 31. August 2011 um 16:17
    • #2

    You can use the same variables as before. The new variables are for cities, nicer colors, etc... I will add them to the documentation the next days (I hope so).

  • flc85
    Gast
    • 1. September 2011 um 07:03
    • #3

    What's the size for map?
    I have put this lines in the config.php (i have the same lines for the France map)

    PHP
    $_BO['mapimg'][200] = $_BO['tpl_imgmap']['FLC'];
    $_BO['tpl_imgmap'][200] = $_BO['tpl_imgmap_default'];
    $_BO['tpl_imgmap'][200]['menu'] = true;
    $_BO['tpl_imgmap'][200]['archive'] = false;
    $_BO['tpl_imgmap'][200]['name'] = 'FLC';
    $_BO['tpl_imgmap'][200]['file'] = 'flc.png';
    $_BO['tpl_imgmap'][200]['coord'] = array(46.56,-0.62,46.35,-0.97); //North, East, South, West (Degrees)
    $_BO['tpl_imgmap'][200]['trange'] = 2; //hours!
    $_BO['tpl_imgmap'][200]['upd_intv'] = 5; //minutes


    and the flc.png in the images directory but i can the the new map.

  • tobi
    Gast
    • 1. September 2011 um 07:23
    • #4

    First line doesn't make any sense. Second is good, it assigns some default values to the map. The other lines will never be analyzed by MyBlitzortung, because the names begin with "tpl_".

    This should work:

    PHP
    $_BO['imgmap'][200] = $_BO['tpl_imgmap_default'];$_BO['imgmap'][200]['menu'] = true;$_BO['imgmap'][200]['archive'] = false;$_BO['imgmap'][200]['name'] = 'FLC';$_BO['imgmap'][200]['file'] = 'flc.png';$_BO['imgmap'][200]['coord'] = array(46.56,-0.62,46.35,-0.97); //North, East, South, West (Degrees)$_BO['imgmap'][200]['trange'] = 2; //hours!$_BO['imgmap'][200]['upd_intv'] = 5; //minutes

    To make it clear: Only I can insert templates ("tpl"), because I have to define them in the source code. You can assign a template to a own map, so you don't have to write all of the variables again and again. The "tpl" variables will never be analyzed by MyBlitzortung, otherwise they wouldn't be templates ;) . So everything in the form of $_BO['tpl...'] = ...; in the config.php doesn't make sense.

    As an example, this single line is enough to add the France map (same with Germany, Switzerland, Austria, Bavaria, ....) :

    PHP
    $_BO['mapimg'][100] = $_BO['tpl_imgmap']['france'];
  • flc85
    Gast
    • 1. September 2011 um 08:17
    • #5

    ok and about the size map?

  • tobi
    Gast
    • 1. September 2011 um 10:40
    • #6

    What do you mean with "size"? ?(

  • flc85
    Gast
    • 1. September 2011 um 10:52
    • #7

    for the pixel 690x690 or it's not important

  • tobi
    Gast
    • 1. September 2011 um 10:58
    • #8

    Now I got it. No, the size doesn't matter.

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