use editor/sourceimage to display sources (needs fixing, superuser only)
This commit is contained in:
parent
17a636e643
commit
dac24348d8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue