kopia lustrzana https://github.com/OpenDroneMap/WebODM
commit
d68e24570d
|
@ -29,7 +29,7 @@ def dashboard(request):
|
|||
no_tasks = Task.objects.filter(project__owner=request.user).count() == 0
|
||||
|
||||
# Create first project automatically
|
||||
if Project.objects.filter(owner=request.user).count() == 0:
|
||||
if Project.objects.count() == 0:
|
||||
Project.objects.create(owner=request.user, name=_("First Project"))
|
||||
|
||||
return render(request, 'app/dashboard.html', {'title': 'Dashboard',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "OSM Quick Editor Button",
|
||||
"webodmMinVersion": "0.5.2",
|
||||
"description": "A plugin to add a button for quickly opening OpenStreetMap's iD editor and setup a TMS basemap.",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"author": "Piero Toffanin",
|
||||
"email": "pt@masseranolabs.com",
|
||||
"repository": "https://github.com/OpenDroneMap/WebODM",
|
||||
|
|
|
@ -16,15 +16,8 @@ PluginsAPI.Map.addActionButton(function(options){
|
|||
var mapLocation = options.map.getZoom() + "/" +
|
||||
options.map.getCenter().lat + "/" +
|
||||
options.map.getCenter().lng;
|
||||
|
||||
if (window.prompt("To start digitizing this map on OpenStreetMap:\n\n" +
|
||||
"1. Copy the URL below.\n" +
|
||||
"2. When the editor loads, open the Background Settings (press B) and select \"Custom\".\n" +
|
||||
"3. Press \"Edit Custom Background\".\n" +
|
||||
"4. Paste the URL you copied below.\n\n" +
|
||||
"Press OK to go to OpenStreetMap", url)){
|
||||
window.location.href = "https://www.openstreetmap.org/edit?editor=id#map=" + mapLocation;
|
||||
}
|
||||
window.location.href = "https://www.openstreetmap.org/edit?editor=id#map=" + mapLocation +
|
||||
"&background=custom:" + url;
|
||||
}
|
||||
}, React.createElement("i", {className: "fa fa-map"}, ""),
|
||||
" OSM Digitize");
|
||||
|
|
Ładowanie…
Reference in New Issue