Nantes Université
Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
Osuna STAC browser
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de modèles
Surveillance
Service d'assistance
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
🏫 Osuna
📍 STAC
Osuna STAC browser
Comparer les révisions
b4b7872914a1c7a97fcd3522f11d95af324a7be4 to cfd94e0b342de956b54112ee2df9e1e6d340c7cf
Comparer les révisions
Les modifications sont affichées comme si la révision
source
était fusionnée avec la révision
cible
.
En savoir plus sur la comparaison des révisions.
Source
osuna/stac/browser
Sélectionner le projet cible
No results found
cfd94e0b342de956b54112ee2df9e1e6d340c7cf
Sélectionner une révision Git
Branches
main
Étiquettes
v0.6.2
v0.8.0
3 résultats
Échanger
Cible
osuna/stac/browser
Sélectionner le projet cible
osuna/stac/browser
1 résultat
b4b7872914a1c7a97fcd3522f11d95af324a7be4
Sélectionner une révision Git
Branches
main
Étiquettes
v0.6.2
v0.8.0
3 résultats
Afficher les modifications
Uniquement les modifications entrantes de la source
Inclure les modifications apportées à la cible depuis la création de la source
Comparer
Validations sur la source (2)
Fix Titan map CRS
· 6e04dea4
Benoit SEIGNOVERT
a rédigé
1 year ago
Vérifiée
6e04dea4
Enforce min zoom 0 default 1
· cfd94e0b
Benoit SEIGNOVERT
a rédigé
1 year ago
Vérifiée
cfd94e0b
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
basemaps.config.js
+4
-45
4 ajouts, 45 suppressions
basemaps.config.js
src/components/Map.vue
+9
-5
9 ajouts, 5 suppressions
src/components/Map.vue
src/theme/page.scss
+13
-6
13 ajouts, 6 suppressions
src/theme/page.scss
avec
26 ajouts
et
56 suppressions
basemaps.config.js
Voir le fichier @
cfd94e0b
import
{
CRS
}
from
'
leaflet
'
;
import
STAC
from
'
./src/models/stac
'
;
import
Utils
from
'
./src/utils
'
;
const
USGS_ATTRIBUTION
=
'
USGS Astrogeology
'
;
const
OSUNA_ATTRIBUTION
=
'
NASA/JPL-Caltech/Space Science Institute/Osuna
'
;
const
WMS
=
'
LWMSTileLayer
'
;
const
XYZ
=
'
LTileLayer
'
;
const
BASEMAPS
=
{
earth
:
{
url
:
'
https://tile.openstreetmap.org/{z}/{x}/{y}.png
'
,
name
:
'
OpenStreetMap
'
,
is
:
XYZ
,
attribution
:
'
© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.
'
},
europa
:
{
baseUrl
:
'
https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/jupiter/europa_simp_cyl.map
'
,
is
:
WMS
,
name
:
'
USGS Europa
'
,
attribution
:
USGS_ATTRIBUTION
,
crs
:
CRS
.
EPSG4326
,
format
:
'
image/png
'
,
layers
:
'
GALILEO_VOYAGER
'
},
mars
:
{
baseUrl
:
'
https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/mars/mars_simp_cyl.map
'
,
is
:
WMS
,
name
:
'
USGS Mars
'
,
attribution
:
USGS_ATTRIBUTION
,
crs
:
CRS
.
EPSG4326
,
format
:
'
image/png
'
,
layers
:
'
MDIM21
'
},
moon
:
{
baseUrl
:
'
https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/earth/moon_simp_cyl.map
'
,
is
:
WMS
,
name
:
'
USGS Moon
'
,
attribution
:
USGS_ATTRIBUTION
,
crs
:
CRS
.
EPSG4326
,
format
:
'
image/png
'
,
layers
:
'
LROC_WAC
'
},
titan
:
{
baseU
rl
:
'
https://vims.univ-nantes.fr/data/tiles/iss/{z}/{x}/{y}.png
'
,
is
:
WMS
,
u
rl
:
'
https://vims.univ-nantes.fr/data/tiles/iss/{z}/{x}/{y}.png
'
,
// CRS = EPSG4326 (enforced in Map.vue)
is
:
'
LTileLayer
'
,
name
:
'
Titan Cassini/ISS
'
,
attribution
:
'
NASA/JPL-Caltech/Space Science Institute/Osuna
'
,
center
:
[
0.0
,
-
180.0
],
crs
:
CRS
.
EPSG4326
,
attribution
:
'
NASA/JPL-Caltech/Space Science Institute/Osuna-LPG
'
,
format
:
'
image/png
'
,
layers
:
'
TITAN_
ISS
'
layers
:
'
ISS
'
}
};
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/components/Map.vue
Voir le fichier @
cfd94e0b
<
template
>
<div
class=
"map-container"
>
<l-map
class=
"map"
v-if=
"show"
:class=
"stac.type"
@
ready=
"init"
:options=
"mapOptions"
>
<l-map
class=
"map"
v-if=
"show"
:class=
"stac.type"
@
ready=
"init"
:crs=
"crs"
:options=
"mapOptions"
>
<l-control-fullscreen
/>
<l-control-zoom
:key=
"`z$
{ix}`" v-bind="zoomControlTexts" position="topleft" />
<l-control-layers
v-if=
"showLayerControl"
position=
"bottomleft"
ref=
"layerControl"
/>
...
...
@@ -10,7 +10,7 @@
/>
<l-tile-layer
v-for=
"xyz of xyzLinks"
ref=
"overlays"
:key=
"xyz.url"
layerType=
"overlay"
:name=
"xyz.name"
:url=
"xyz.url"
:subdomains=
"xyz.subdomains"
:options=
"xyz.options"
:name=
"xyz.name"
:url=
"xyz.url"
:subdomains=
"xyz.subdomains"
:options=
"xyz.options"
/>
<l-geo-json
v-if=
"geojson"
ref=
"geojson"
:geojson=
"geojson"
:options=
"
{onEachFeature: showPopup}" :optionsStyle="{color: secondaryColor, weight: secondaryWeight}" />
</l-map>
...
...
@@ -41,6 +41,7 @@ import STAC from '../models/stac';
import
{
object
as
formatObject
,
string
as
formatString
}
from
'
@radiantearth/stac-fields/datatypes
'
;
import
{
BPopover
}
from
'
bootstrap-vue
'
;
import
getBasemaps
from
'
../../basemaps.config
'
;
import
{
CRS
}
from
"
leaflet
"
;
// Fix missing icons: https://vue2-leaflet.netlify.app/quickstart/#marker-icons-are-missing
import
{
Icon
}
from
'
leaflet
'
;
...
...
@@ -94,6 +95,7 @@ export default {
},
data
()
{
return
{
crs
:
CRS
.
EPSG4326
,
secondaryColor
:
'
#FF8833
'
,
secondaryWeight
:
2
,
show
:
false
,
...
...
@@ -103,7 +105,9 @@ export default {
geojson
:
null
,
itemPreviewsLayer
:
null
,
mapOptions
:
{
zoomControl
:
false
zoomControl
:
false
,
minZoom
:
0
,
zoom
:
1
,
},
dblClickState
:
null
,
selectedItem
:
null
,
...
...
@@ -259,7 +263,7 @@ export default {
else
if
(
this
.
stac
.
isCollection
())
{
options
.
bbox
=
this
.
stac
?.
extent
?.
spatial
?.
bbox
[
0
];
}
if
(
this
.
stacLayerData
.
type
===
geojsonMediaType
)
{
this
.
geojson
=
await
this
.
$store
.
dispatch
(
'
loadGeoJson
'
,
this
.
stacLayerData
);
this
.
$emit
(
'
dataChanged
'
,
this
.
stacLayerData
);
...
...
@@ -413,7 +417,7 @@ export default {
layer
.
bindPopup
(
html
);
},
addBoundsSelector
()
{
this
.
areaSelect
=
L
.
areaSelect
({
// eslint-disable-line
this
.
areaSelect
=
L
.
areaSelect
({
// eslint-disable-line
width
:
300
,
height
:
200
,
minWidth
:
20
,
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/theme/page.scss
Voir le fichier @
cfd94e0b
...
...
@@ -51,9 +51,16 @@ body {
}
.map
{
height
:
3
50
px
;
height
:
50
vw
;
background-color
:
transparent
;
@include
border-radius
(
$border-radius
);
@include
media-breakpoint-up
(
lg
)
{
height
:
25vw
;
}
@include
media-breakpoint-up
(
lg
)
{
max-height
:
20vw
;
}
}
h1
{
...
...
@@ -73,7 +80,7 @@ body {
.nav-pills
{
margin
:
0
;
padding
:
0
;
>
li
{
margin
:
0
0
.5rem
;
&
:only-child
{
...
...
@@ -196,7 +203,7 @@ body {
gap
:
0
.25rem
;
padding
:
0
.5rem
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.03
);
>
.title
{
text-align
:
left
;
flex-grow
:
9
;
...
...
@@ -212,12 +219,12 @@ body {
}
}
.items
,
.catalogs
{
>
.list
{
position
:
relative
;
}
>
header
{
margin-bottom
:
0
.5rem
;
...
...
@@ -235,4 +242,4 @@ body {
}
}
}
}
\ No newline at end of file
}
Ce diff est replié.
Cliquez pour l'agrandir.