Skip to content
  • Loïc DAYOT's avatar
    chore(): move default map parameters in config.inc.php · d52a18a1
    Loïc DAYOT authored
    Map parameters (zoom, lat, lon) are now set in local configuration file for easier configuration. Add a message when geolocation isn't found from address.
    
    BREAKING CHANGE:
    
    Add the following configuration in your `www/inc/config.inc.php` file in line 99:
    
    ```php
    /*
     * Map settings
     **/
    $mapGlobalDisplay = array( /** in map.php */
        'lat'     => 46.8,
        'lon'     => 1,
        'zoom'    => 6,
    );
    $mapLocalgroupDisplay = array( /** in showlocalgroup */
        'zoom'    => 13,
    );
    $mapEventDisplay = array( /** in showevent */
        'zoom'    => 11,
    );
    ```
    d52a18a1