Skip to content

Commit

Permalink
chore: overriding searchUrl in layer file
Browse files Browse the repository at this point in the history
  • Loading branch information
danji90 committed Jan 15, 2025
1 parent e56a2e3 commit e4a15e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ REACT_APP_MATOMO_URL_BASE=https://analytics.geops.de/
REACT_APP_MATOMO_SITE_ID=9
REACT_APP_VECTOR_TILES_URL=https://maps.geops.io
#REACT_APP_STYLE_REVIEW_PREFIX=
# REACT_APP_SEARCH_URL=https://maps.trafimage.ch
REACT_APP_SEARCH_URL=https://wkp.dev.trafimage.geops.ch
REACT_APP_SEARCH_URL=https://maps.trafimage.ch
# REACT_APP_SEARCH_URL=https://wkp.dev.trafimage.geops.ch
REACT_APP_SHORTENER_URL=https://geops.sh/api/v1/weburls
REACT_APP_MAPSET_URL=https://editor.mapset.ch
REACT_APP_DRAW_URL=https://editor.mapset.ch/api/v1/meta/kml/
Expand Down
2 changes: 1 addition & 1 deletion src/layers/KilometrageLayer/KilometrageLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class KilometrageLayer extends MapboxStyleLayer {
const generalization = features
.find((feat) => feat.get("line_number"))
?.get("generalization_level");

this.searchUrl = "https://wkp.dev.trafimage.geops.ch";
return fetch(
`${this.searchUrl}/search/measure?coords=${coordinate}&generalization_level=${generalization}&lines=${lines.toString()}`,
)
Expand Down

0 comments on commit e4a15e6

Please sign in to comment.