Commit f7aec2b5 authored by Matija Obreza's avatar Matija Obreza

Switching map base layer

parent 6e59fd22
......@@ -542,8 +542,8 @@ class BrowsePage extends React.Component<IMapPageProps, any> {
<TileLayer
zIndex={ 0 }
opacity={ 0.50 }
attribution={ '<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>' }
url={ 'https://maps.tilehosting.com/styles/positron/{z}/{x}/{y}.png?key=frAVvE3XbD6EF3BM2kDW' }
attribution={ 'Tiles &copy; Esri &mdash; Esri, DeLorme, NAVTEQ' }
url={ 'https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}' }
/>
{ mapLayers && mapLayers.filter((layer) => layer.enabled).map((layer, index) => <TileLayer zIndex={ index + 1 } key={ layer.name } { ...layer }/>) }
......
......@@ -106,8 +106,8 @@ class LocationMap extends React.Component<ILocationMapProps, any> {
doubleClickZoom={ false }
>
<TileLayer
attribution={ '<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>' }
url={ 'https://maps.tilehosting.com/styles/positron/{z}/{x}/{y}.png?key=frAVvE3XbD6EF3BM2kDW' }
attribution={ 'Tiles &copy; Esri &mdash; Esri, DeLorme, NAVTEQ' }
url={ 'https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}' }
/>
{ mapLayers &&
mapLayers
......
......@@ -121,8 +121,8 @@ class FormMap extends React.Component<IFormMapProps, any> {
zoom={ 6 }
>
<TileLayer
attribution={ '<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>' }
url={ 'https://maps.tilehosting.com/styles/positron/{z}/{x}/{y}.png?key=frAVvE3XbD6EF3BM2kDW' }
attribution={ 'Tiles &copy; Esri &mdash; Esri, DeLorme, NAVTEQ' }
url={ 'https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}' }
/>
{ mapLayers &&
mapLayers
......
......@@ -70,8 +70,8 @@ class LocationMap extends React.Component<ILocationMapProps, any> {
doubleClickZoom={ false }
>
<TileLayer
attribution={ '<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>' }
url={ 'https://maps.tilehosting.com/styles/positron/{z}/{x}/{y}.png?key=frAVvE3XbD6EF3BM2kDW' }
attribution={ 'Tiles &copy; Esri &mdash; Esri, DeLorme, NAVTEQ' }
url={ 'https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}' }
/>
{ mapLayers &&
mapLayers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment