forked from MapComplete/MapComplete
More work on cyclestreet layout, add loading of layers depending on zoom level
This commit is contained in:
parent
3576a4b1e1
commit
9a5b35b9f3
17 changed files with 109 additions and 59 deletions
|
@ -130,9 +130,7 @@ export class OsmConnection {
|
|||
}, function (err, details) {
|
||||
if(err != null){
|
||||
console.log(err);
|
||||
self.auth.logout();
|
||||
self.userDetails.data.loggedIn = false;
|
||||
self.userDetails.ping();
|
||||
return;
|
||||
}
|
||||
|
||||
if (details == null) {
|
||||
|
|
|
@ -7,6 +7,7 @@ import {ImageUploadFlow} from "../../UI/ImageUploadFlow";
|
|||
import {UserDetails} from "./OsmConnection";
|
||||
import {SlideShow} from "../../UI/SlideShow";
|
||||
import {State} from "../../State";
|
||||
import {Tag} from "../TagsFilter";
|
||||
|
||||
export class OsmImageUploadHandler {
|
||||
private _tags: UIEventSource<any>;
|
||||
|
@ -51,7 +52,7 @@ export class OsmImageUploadHandler {
|
|||
key = "image:" + freeIndex;
|
||||
}
|
||||
console.log("Adding image:" + key, url);
|
||||
changes.addChange(tags.id, key, url);
|
||||
changes.addTag(tags.id, new Tag(key, url));
|
||||
self._slideShow.MoveTo(-1); // set the last (thus newly added) image) to view
|
||||
},
|
||||
allDone: () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue