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

Display cities

  • flc85
  • 2. September 2011 um 07:37
  • Erledigt
  • flc85
    Gast
    • 2. September 2011 um 07:37
    • #1

    Is it possible to choose the cities to display depending on the card?
    I wish the cities displayed for the regional map are not the same as for the map of europe.

  • tobi
    Gast
    • 2. September 2011 um 21:39
    • #2

    Displaying cities is a bit strange.

    Here's a documentation for all of those features that belong to cities:

    First some words to the cities.txt file. In this file, the name, coordinates and a city-type is saved. The city-type is a number between 0 and 4. I do not really know what these number mean, but, for example, the 0 stands for a lot of small german towns. Some bigger cities have also border-data in this file. But MyBlitzortung doesn't read that data. Instead it raises the city-type-number by 4 when it finds border data. Perhaps, this wasn't such a good idea, so I will change this behavior in future releases.

    Perhaps, someone could improve that cities file, especially change the city-type. For example "1" could be only capital cites, "2" provincial capitals, "3" other major cites and so on. Also an (additional) city-type per population could make sense.


    Now the question, how to include them in the maps. There's a new option for the cities, for each map seperate:

    PHP
    $_BO['mapimg'][123]['cities'][2] = $_BO['points']['whitered1'];


    This will display all cities with city-type 2 with some predefined points to the map number 123.

    If you want another city-type, for example 5, you have to add a new line. So you will get:

    PHP
    $_BO['mapimg'][123]['cities'][2] = $_BO['points']['whitered1'];$_BO['mapimg'][123]['cities'][5] = $_BO['points']['whitered1'];

    For example, the Western Europe map uses types 1,5 and 6. The Bavarian, NRW and the France one 1,2,5,6 . You see, this is a bit strange. You can also edit the cities.txt file, copy and paste existing cities with a new city-type, reimport and set your values in the config. As I've said before, we will find a better way in the future.


    So, whats about those points. They can be used to change the shape or color for strikes, stations or cities in those maps. This is the definition for such a point, called 'whitered1'. I've predefined it in the source code, but you can add as much point types as you want in you config and assign them to different city-types.

    PHP
    $_BO['points']['whitered1']['point']         = array(3, 2, 'f008', 1, 'fff8');


    The parts:
    1: Point type. 1=Circle, 2=Plus, 3=Square, 10=Station sign, 20=Strike sign, text=callback function (see very last lines in image.inc.php).
    2: Size (sometimes pixel, sometimes not)
    3: Fill color. When strikes are displayed, this setting will be ignored as strike color comes from the time of the strike.
    4: Border-width: 0 means no border
    5: Second color: In most cases, this is the color for the border.

    You can also add a text to a point, especially for cities or stations (it doesn't make sense for strikes).

    PHP
    $_BO['points']['whitered1']['font']          = array(7, 1, array('fff8',1,'000c'), 6, -11);


    The parts:
    1: Fontsize (values below 6 will set non-ttf fonts)
    2: Font: true=bold, 1="mono-style", other=normal
    3: A color string for the font color OR an array with: 1=fontcolor, 2=border, 3=bordercolor
    4: x-position relative to the point
    5: y-position relative to the point


    The colors are hexadecimal. It is alway red, green, blue. You can define the alpha at the end. You can use different formats
    - When using three characters "f" is the maximum value.
    '3af' : red=3, green=a, blue=f
    - The same with four characters:
    '3af5': red=3, green=a, blue=f, alpha=5
    - When using six characters "ff" is the maximum value.
    '37abf6' : red=37, green=ab, blue=f6
    - The same with four characters:
    '33a0ff5a': red=33, green=a0, blue=ff, alpha=5a

    For example red: 'f00' or 'ff0000' (red like a fire truck)
    Or red with an alpha channel: 'f008' or 'ff000088' (also red, but you can see the underlying parts of the image)

    If you know hex-values, this should be an easy going. It is the same as with html values. You can find some hex-color-generators in the web or as browser plugins. But don't put the "#" sign at the beginning.

  • flc85
    Gast
    • 5. September 2011 um 07:42
    • #3

    ok i will try when my internet connection has returned.
    I can't do this from my work office.

  • flc85
    Gast
    • 8. September 2011 um 07:41
    • #4

    It's ok like you can see:
    http://www.meteofontenay.fr/blitzortung/myblitzortung/?bo_showmap=201&

    Thanks

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