Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Website
Commits
109ac88d
Commit
109ac88d
authored
Mar 18, 2019
by
Matija Obreza
Browse files
Switched base maps provider to tilehosting.com
parent
3b21c4a8
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/accessions/ui/MapPage.tsx
View file @
109ac88d
...
...
@@ -425,8 +425,8 @@ class BrowsePage extends React.Component<IMapPageProps, any> {
<
TileLayer
zIndex
=
{
0
}
opacity
=
{
0.50
}
attribution
=
{
'
©
<a href="http://www.openstreetmap.org/copyright"
>
OpenStreetMap
</a>
contributors
'
}
url
=
{
'
https://
tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png
'
}
attribution
=
{
'
<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a>
<a href="http
s
://www.openstreetmap.org/copyright"
target="_blank">©
OpenStreetMap contributors
</a>
'
}
url
=
{
'
https://
maps.tilehosting.com/styles/positron/{z}/{x}/{y}.png?key=frAVvE3XbD6EF3BM2kDW
'
}
/>
{
mapLayers
&&
mapLayers
.
filter
((
layer
)
=>
layer
.
enabled
).
map
((
layer
,
index
)
=>
<
TileLayer
zIndex
=
{
index
+
1
}
key
=
{
layer
.
name
}
{
...
layer
}
/>)
}
...
...
src/datasets/ui/c/LocationMap.tsx
View file @
109ac88d
...
...
@@ -58,7 +58,7 @@ class LocationMap extends React.Component<ILocationMapProps, any> {
}
public
render
()
{
const
{
classes
,
locations
,
mapLayers
,
t
}
=
this
.
props
;
const
{
classes
,
locations
,
mapLayers
}
=
this
.
props
;
if
(
!
(
locations
&&
locations
.
length
))
{
return
null
;
...
...
@@ -106,8 +106,8 @@ class LocationMap extends React.Component<ILocationMapProps, any> {
doubleClickZoom
=
{
false
}
>
<
TileLayer
attribution
=
{
`©
${
t
(
'
datasets.public.c.locationMap.link
'
,
{
aOpen
:
'
<a href="http://www.openstreetmap.org/copyright"
>
'
,
aClose
:
'
</a>
'
}
)
}
`
}
url
=
{
'
https://
{s}
.tile
.openstreetmap.org/{z}/{x}/{y}.png
'
}
attribution
=
{
'
<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a>
<a href="http
s
://www.openstreetmap.org/copyright"
target="_blank">© OpenStreetMap contributors
</a>
'
}
url
=
{
'
https://
maps
.tile
hosting.com/styles/positron/{z}/{x}/{y}.png?key=frAVvE3XbD6EF3BM2kDW
'
}
/>
{
mapLayers
&&
mapLayers
...
...
src/datasets/ui/dashboard/dataset-stepper/steps/location/FormMap.tsx
View file @
109ac88d
...
...
@@ -100,7 +100,7 @@ class FormMap extends React.Component<IFormMapProps, any> {
return
null
;
}
const
{
classes
,
mapLayers
,
t
}
=
this
.
props
;
const
{
classes
,
mapLayers
}
=
this
.
props
;
const
{
decimalLatitude
,
decimalLongitude
}
=
this
.
getCurrentLocation
();
...
...
@@ -121,8 +121,8 @@ class FormMap extends React.Component<IFormMapProps, any> {
zoom
=
{
6
}
>
<
TileLayer
attribution
=
{
`©
${
t
(
'
datasets.dashboard.p.stepper.location.copyright
'
,
{
openingTag
:
'
<a href="http://www.openstreetmap.org/copyright"
>
'
,
closingTag
:
'
</a>
'
}
)
}
`
}
url
=
{
'
https://
{s}
.tile
.openstreetmap.org/{z}/{x}/{y}.png
'
}
attribution
=
{
'
<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a>
<a href="http
s
://www.openstreetmap.org/copyright"
target="_blank">© OpenStreetMap contributors
</a>
'
}
url
=
{
'
https://
maps
.tile
hosting.com/styles/positron/{z}/{x}/{y}.png?key=frAVvE3XbD6EF3BM2kDW
'
}
/>
{
mapLayers
&&
mapLayers
...
...
src/ui/common/LocationMap.tsx
View file @
109ac88d
...
...
@@ -68,8 +68,8 @@ class LocationMap extends React.Component<ILocationMapProps, any> {
doubleClickZoom
=
{
false
}
>
<
TileLayer
attribution
=
{
'
©
<a href="http://www.openstreetmap.org/copyright"
>
OpenStreetMap
</a>
contributors
'
}
url
=
{
'
https://
{s}
.tile
.openstreetmap.org/{z}/{x}/{y}.png
'
}
attribution
=
{
'
<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a>
<a href="http
s
://www.openstreetmap.org/copyright"
target="_blank">©
OpenStreetMap contributors
</a>
'
}
url
=
{
'
https://
maps
.tile
hosting.com/styles/positron/{z}/{x}/{y}.png?key=frAVvE3XbD6EF3BM2kDW
'
}
/>
{
mapLayers
&&
mapLayers
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment