forked from MapComplete/MapComplete
Fix typo which prevented updating the selected element, improve comments and typings
This commit is contained in:
parent
b4f739e506
commit
09507b3537
3 changed files with 5 additions and 3 deletions
|
@ -4,8 +4,10 @@ import ScrollableFullScreen from "../../UI/Base/ScrollableFullScreen"
|
||||||
import BaseUIElement from "../../UI/BaseUIElement"
|
import BaseUIElement from "../../UI/BaseUIElement"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The stray-click-hanlders adds a marker to the map if no feature was clicked.
|
* The stray-click-handler adds a marker to the map if no feature was clicked.
|
||||||
* Shows the given uiToShow-element in the messagebox
|
* Shows the given uiToShow-element in the messagebox
|
||||||
|
*
|
||||||
|
* Note: the actual implementation is in StrayClickHandlerImplementation
|
||||||
*/
|
*/
|
||||||
export default class StrayClickHandler {
|
export default class StrayClickHandler {
|
||||||
public static construct = (
|
public static construct = (
|
||||||
|
|
|
@ -178,7 +178,7 @@ export class BBox {
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
toLeaflet() {
|
toLeaflet(): [[number, number], [number, number]] {
|
||||||
return [
|
return [
|
||||||
[this.minLat, this.minLon],
|
[this.minLat, this.minLon],
|
||||||
[this.maxLat, this.maxLon],
|
[this.maxLat, this.maxLon],
|
||||||
|
|
|
@ -73,7 +73,7 @@ export abstract class OsmObject {
|
||||||
if (rawData["error"] !== undefined && rawData["statuscode"] === 410) {
|
if (rawData["error"] !== undefined && rawData["statuscode"] === 410) {
|
||||||
return "deleted"
|
return "deleted"
|
||||||
}
|
}
|
||||||
return rawData["contents"].elements[0].tags
|
return rawData["content"].elements[0].tags
|
||||||
}
|
}
|
||||||
|
|
||||||
static async DownloadObjectAsync(
|
static async DownloadObjectAsync(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue