Changeset afe3f85


Ignore:
Timestamp:
Jan 30, 2021, 4:27:20 PM (6 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
e90dce0
Parents:
4fa6152
Message:

Added osm tile server to the environment, to use own tileserver in production environment

Location:
src/mapservice-webclient/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice-webclient/src/app/map/map.component.ts

    r4fa6152 rafe3f85  
    8080
    8181    var layer_openstreetmap = L.tileLayer(
    82       'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
     82      environment.OSM_TILE_SERVER,
    8383      { attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openseamap.org">OpenSeaMap</a>, <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
    8484    ).addTo(this.map);
  • src/mapservice-webclient/src/environments/environment.prod.ts

    r4fa6152 rafe3f85  
    22  production: true,
    33  API_BASE_PATH: 'https://gnuboat.engsas.com/mapservice/',
    4   OVERPASS_API_PATH: 'https://lz4.overpass-api.de/api/interpreter'
     4  OVERPASS_API_PATH: 'https://overpass-api.de/api/interpreter',
     5  OSM_TILE_SERVER: 'https://gnuboat.engsas.de/osm_tiles/{z}/{x}/{y}.png'
    56};
  • src/mapservice-webclient/src/environments/environment.ts

    r4fa6152 rafe3f85  
    66  production: false,
    77  API_BASE_PATH: 'http://localhost:8080/mapservice/v1',
    8   OVERPASS_API_PATH: 'https://lz4.overpass-api.de/api/interpreter'
     8  OVERPASS_API_PATH: 'https://overpass-api.de/api/interpreter',
     9  OSM_TILE_SERVER: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
    910};
    1011
Note: See TracChangeset for help on using the changeset viewer.