Merge pull request #467 from pierotofy/ideditor

IdEditor
pull/473/head
Piero Toffanin 2018-06-18 12:57:56 -04:00 zatwierdzone przez GitHub
commit d68e24570d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 4 dodań i 11 usunięć

Wyświetl plik

@ -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',

Wyświetl plik

@ -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",

Wyświetl plik

@ -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");