Compare commits
2 Commits
79b2ef72a9
...
v2.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 84c0363067 | |||
| 70f448a4f7 |
@@ -0,0 +1,2 @@
|
|||||||
|
# Paquet YunoHost (dépôt séparé : ORGANISATION-KA-INTERNATIONALE/jwe_ynh)
|
||||||
|
jwe_ynh/
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "jwe",
|
"name": "jwe",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "jwe",
|
"name": "jwe",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mapillary-js": "^4.1.2",
|
"mapillary-js": "^4.1.2",
|
||||||
"maplibre-gl": "^5.1.0",
|
"maplibre-gl": "^5.1.0",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "jwe",
|
"name": "jwe",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -326,7 +326,13 @@
|
|||||||
|
|
||||||
let ancienReal: Coordonnees | null = null;
|
let ancienReal: Coordonnees | null = null;
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if (!map || !map.loaded()) return;
|
// Lecture inconditionnelle de `real` : au montage la carte n'existe pas
|
||||||
|
// encore, et un retour anticipé avant toute lecture réactive ferait que
|
||||||
|
// Svelte n'enregistre aucune dépendance — l'effet ne serait jamais relancé.
|
||||||
|
// (isStyleLoaded et non loaded : loaded() reste faux pendant le chargement
|
||||||
|
// des tuiles, ce qui ferait rater le dessin juste après un zoom/pan.)
|
||||||
|
void real;
|
||||||
|
if (!map || !map.isStyleLoaded()) return;
|
||||||
if (real && !ancienReal) dessinerRevelation();
|
if (real && !ancienReal) dessinerRevelation();
|
||||||
if (!real && ancienReal) nettoyerRevelation();
|
if (!real && ancienReal) nettoyerRevelation();
|
||||||
ancienReal = real;
|
ancienReal = real;
|
||||||
|
|||||||
Reference in New Issue
Block a user