Skip to content

Commit

Permalink
Merge pull request #3153 from Geoportail-Luxembourg/GSLUX-698-fix-mvt…
Browse files Browse the repository at this point in the history
…-urls

fix default vars handling for url links
  • Loading branch information
mki-c2c authored Jun 13, 2024
2 parents d6c9bbf + 4348090 commit 2ca7f62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class MvtStylingService {
* @param {ngeo.statemanager.Location} ngeoLocation ngeo location service.
* @ngInject
*/
constructor($http, appUserManager, uploadvtstyleUrl, deletevtstyleUrl, getvtstyleUrl, vectortilesUrl, ngeoBackgroundLayerMgr, ngeoLocation) {
constructor($http, appUserManager, uploadvtstyleUrl, uploadvtstyleUrlOverride, deletevtstyleUrl, deletevtstyleUrlOverride, getvtstyleUrl, vectortilesUrl, ngeoBackgroundLayerMgr, ngeoLocation) {
this.http_ = $http;
this.appUserManager_ = appUserManager;
this.isCustomStyle = false;
Expand All @@ -59,8 +59,8 @@ class MvtStylingService {
topogr_global: false,
topo_bw_jpeg: false
};
this.uploadvtstyleUrl_ = uploadvtstyleUrl;
this.deletevtstyleUrl_ = deletevtstyleUrl;
this.uploadvtstyleUrl_ = uploadvtstyleUrlOverride ? uploadvtstyleUrlOverride : uploadvtstyleUrl;
this.deletevtstyleUrl_ = deletevtstyleUrlOverride ? deletevtstyleUrlOverride : deletevtstyleUrl;
this.getvtstyleUrl_ = getvtstyleUrl;
this.vectortilesUrl_ = vectortilesUrl;
this.backgroundLayerMgr_ = ngeoBackgroundLayerMgr;
Expand Down
16 changes: 8 additions & 8 deletions geoportal/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ vars:
tiles3dUrl: https://3dtiles.geoportail.lu/3dtiles/
lidarProfileUrl: '{LIDAR_PROFILE_URL}'
proxyWmsUrl: '{PROXYWMSURL}'
uploadvtstyleUrl: '{UPLOAD_VT_STYLE_URL}'
deletevtstyleUrl: '{DELETE_VT_STYLE_URL}'
uploadvtstyleUrlOverride: '{UPLOAD_VT_STYLE_URL}'
deletevtstyleUrlOverride: '{DELETE_VT_STYLE_URL}'
geonetworkBaseUrl: '{GEONETWORK_BASE_URL}'
vectortilesUrl: '{VECTORTILESURL}'
wmtsUrl: '{WMTSURL}'
Expand Down Expand Up @@ -245,12 +245,12 @@ vars:
reverseGeocodingServiceUrl: {name: reverse_geocode}
routingServiceUrl: {name: getremoteroute}
shorturlServiceUrl: {name: shortener_create}
# uploadvtstyleUrl: {name: upload_vt_style}
# deletevtstyleUrl: {name: delete_vt_style}
getvtpermalinkUrl: {name: get_permalink_style}
uploadvtstyleUrl: {name: upload_vt_style}
deletevtstyleUrl: {name: delete_vt_style}
getvtstyleUrl: {name: get_vt_style}
uploadvtpermalinkUrl: {name: upload_permalink_style}
deletevtpermalinkUrl: {name: delete_permalink_style}
getvtstyleUrl: {name: get_vt_style}
getvtpermalinkUrl: {name: get_permalink_style}
downloadPdfUrl: {name: download_pdf}
static:
appImagesPath: {name: 'geoportailv3_geoportal:static-ngeo/images/'}
Expand Down Expand Up @@ -529,8 +529,8 @@ runtime_environment:
- {name: PDS_SMTP_SERVER}
- {name: PDS_BCC_ADDRESS}
- {name: PROXYWMSURL, default: 'https://wmsproxy.geoportail.lu/ogcproxywms'}
- {name: UPLOAD_VT_STYLE_URL, default: 'https://map.geoportail.lu/uploadvtstyle'}
- {name: DELETE_VT_STYLE_URL, default: 'https://map.geoportail.lu/deletevtstyle'}
- {name: UPLOAD_VT_STYLE_URL}
- {name: DELETE_VT_STYLE_URL}
- {name: REVERSE_GEOCODE_API_KEY, default: ''}
- {name: REVERSE_GEOCODE_URL, default: 'http://open.mapquestapi.com/nominatim/v1/reverse.php'}
- {name: ROUTING_GRAPHHOPPER_API_KEY, default: null}
Expand Down

0 comments on commit 2ca7f62

Please sign in to comment.