I’m unable to set negative values for leaflet.default_lat or leaflet.default_lng and am looking for a workaround. I’ve tried hardcoding in config.php, escaping “-”, specifying degrees + minutes format, and also specifying positive lat/long with orientation “W” for west or “S” for south.
librenms@nms:~$ lnms config:set leaflet.default_lng "-94.36"
The "-9" option does not exist.
librenms@nms:~$ lnms config:set leaflet.default_lng "\-94.36"
"\\-94.36" is not an float
librenms@nms:~$ lnms config:set leaflet.default_lng '-94.36'
The "-9" option does not exist.
librenms@nms:~$ lnms config:set leaflet.default_lng '94.36W'
"94.36W" is not an float
librenms@nms:~$ lnms config:set leaflet.default_lng '94°21'
"94\u00b021" is not an float
librenms@nms:~$ lnms config:set leaflet.default_lat '38.65'
librenms@nms:~$ lnms config:set leaflet.default_lat '-38.65'
The "-3" option does not exist.
librenms@nms:~$
librenms@nms:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 25.2.0-11-g2cb8d9f04 (2025-02-24T14:25:44-07:00)
DB Schema | 2025_01_30_000121_add_ifindex_index_to_ports_table (315)
PHP | 8.3.6
Python | 3.12.3
Database | MariaDB 10.11.8-MariaDB-0ubuntu0.24.04.1
RRDTool | 1.7.2
SNMP | 5.9.4.pre2
===========================================
[OK] Composer Version: 2.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Distributed Polling setting is enabled globally
[OK] Connected to rrdcached
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is functional
[OK] rrdtool version ok
[OK] Connected to rrdcached
librenms@nms:~$