use editor/sourceimage to display sources (needs fixing, superuser only)

This commit is contained in:
Laura Klünder 2023-12-05 01:24:27 +01:00
parent 17a636e643
commit dac24348d8

View file

@ -99,7 +99,7 @@ editor = {
for (var i = 0; i < sources.length; i++) {
source = sources[i];
editor.sources[source.id] = source;
source.layer = L.imageOverlay('/api/sources/'+source.id+'/image/', L.GeoJSON.coordsToLatLngs(source.bounds), {opacity: 0.3});
source.layer = L.imageOverlay('/editor/sourceimage/'+source.name, L.GeoJSON.coordsToLatLngs(source.bounds), {opacity: 0.3});
editor._sources_control.addOverlay(source.layer, source.name);
}
if (sources.length) editor._sources_control.addTo(editor.map);