forked from MapComplete/MapComplete
Merge develop
This commit is contained in:
commit
f0823f4c4d
524 changed files with 18747 additions and 8546 deletions
|
@ -159,7 +159,6 @@ export default class FavouritesFeatureSource extends StaticFeatureSource {
|
|||
|
||||
public removeFavourite(feature: Feature, tags?: UIEventSource<Record<string, string>>) {
|
||||
const id = feature.properties.id.replace("/", "-")
|
||||
const pref = this._osmConnection.GetPreference("favourite-" + id)
|
||||
this._osmConnection.preferencesHandler.removeAllWithPrefix("mapcomplete-favourite-" + id)
|
||||
if (tags) {
|
||||
delete tags.data._favourite
|
||||
|
|
|
@ -53,7 +53,6 @@ export default class LayoutSource extends FeatureSourceMerger {
|
|||
|
||||
/*
|
||||
const overpassSource = LayoutSource.setupOverpass(
|
||||
backend,
|
||||
osmLayers,
|
||||
bounds,
|
||||
zoom,
|
||||
|
@ -144,7 +143,6 @@ export default class LayoutSource extends FeatureSourceMerger {
|
|||
}
|
||||
|
||||
private static setupOverpass(
|
||||
backend: string,
|
||||
osmLayers: LayerConfig[],
|
||||
bounds: Store<BBox>,
|
||||
zoom: Store<number>,
|
||||
|
|
|
@ -48,7 +48,7 @@ export default class NearbyFeatureSource implements FeatureSource {
|
|||
flayer.layerDef.minzoom,
|
||||
flayer.isDisplayed
|
||||
)
|
||||
calcSource.addCallbackAndRunD((features) => {
|
||||
calcSource.addCallbackAndRunD(() => {
|
||||
this.update()
|
||||
})
|
||||
this._allSources.push(calcSource)
|
||||
|
|
|
@ -103,7 +103,7 @@ export default class OverpassFeatureSource implements FeatureSource {
|
|||
if (!result) {
|
||||
return
|
||||
}
|
||||
const [bounds, date, updatedLayers] = result
|
||||
const [bounds, _, __] = result
|
||||
this._lastQueryBBox = bounds
|
||||
}
|
||||
|
||||
|
|
|
@ -6,11 +6,14 @@ import { BBox } from "../../BBox"
|
|||
|
||||
export interface SnappingOptions {
|
||||
/**
|
||||
* If the distance is bigger then this amount, don't snap.
|
||||
* If the distance to the line is bigger then this amount, don't snap.
|
||||
* In meter
|
||||
*/
|
||||
maxDistance: number
|
||||
|
||||
/**
|
||||
* If set to true, no value will be given if no snapping was made
|
||||
*/
|
||||
allowUnsnapped?: false | boolean
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue