Don't escape leaflet tile url in location edit map (#15695)

* Don't escape leaflet tile url

* encode config as json and get config value in controller

* fixed array style
This commit is contained in:
Nicolas
2024-02-21 19:09:04 +01:00
committed by GitHub
parent 3d94c53438
commit b8095d6811
2 changed files with 3 additions and 1 deletions

View File

@@ -148,7 +148,7 @@
locationId = $btn.data('id');
if (locationMap === null) {
config = {"tile_url": "{{ \LibreNMS\Config::get('leaflet.tile_url', '{s}.tile.openstreetmap.org') }}"};
config = {{ Js::from($maps_config) }}
locationMap = init_map('location-edit-map', '{{ $maps_engine }}', '{{ $maps_api }}', config);
locationMarker = init_map_marker(locationMap, location);
}