mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed openstreetmap support in device not using custom tiles (#9536)
* Fixed openstreetmap support in device not using custom tiles * Updated blade template for locations * Removed console.log()
This commit is contained in:
committed by
Tony Murray
parent
fad0bffc43
commit
dd695dde53
@@ -141,7 +141,8 @@ if ($device['location_id']) {
|
||||
$("#toggle-map").on("shown.bs.collapse", function () {
|
||||
if (device_marker == null) {
|
||||
device_location = new L.LatLng(' . (float)$location->lat . ', ' . (float)$location->lng . ');
|
||||
device_map = init_map("location-map", "' . $maps_engine . '", "' . $maps_api . '");
|
||||
config = {"tile_url": "'.Config::get('leaflet.tile_url', '{s}.tile.openstreetmap.org').'"};
|
||||
device_map = init_map("location-map", "' . $maps_engine . '", "' . $maps_api . '", config);
|
||||
device_marker = init_map_marker(device_map, device_location);
|
||||
device_map.setZoom(18);
|
||||
';
|
||||
|
Reference in New Issue
Block a user