forked from MapComplete/MapComplete
UX: don't give an error message for photon when searching OSM-urls
This commit is contained in:
parent
fd5e39065d
commit
eca6a0e3cf
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,10 @@ export default class PhotonSearch implements GeocodingProvider, ReverseGeocoding
|
||||||
if (query.length < 3) {
|
if (query.length < 3) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
if(query.indexOf("https://") >=0){
|
||||||
|
// Photon gives a '403 forbidden' when this is part of the search string
|
||||||
|
return []
|
||||||
|
}
|
||||||
const limit = this.searchLimit
|
const limit = this.searchLimit
|
||||||
let bbox = ""
|
let bbox = ""
|
||||||
if (options?.bbox && !this.ignoreBounds) {
|
if (options?.bbox && !this.ignoreBounds) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue