From ce08cfdfb7f9ce1718b8889fbd66715ec5585909 Mon Sep 17 00:00:00 2001 From: TheCoreDev Date: Mon, 10 Nov 2025 23:47:00 +0100 Subject: [PATCH] =?UTF-8?q?[10/11/2025]=20Correction=20du=20probl=C3=A8me?= =?UTF-8?q?=20de=20conflit=20entre=20MondialRelay=20et=20ColissimoPickupPo?= =?UTF-8?q?int?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/colissimo-pickup-point.html | 62 ++- .../mondialrelay/order-delivery-extra.html | 519 +++++++++--------- .../capbretagne/order-delivery.html | 10 + 3 files changed, 326 insertions(+), 265 deletions(-) diff --git a/local/modules/ColissimoPickupPoint/templates/frontOffice/default/colissimo-pickup-point.html b/local/modules/ColissimoPickupPoint/templates/frontOffice/default/colissimo-pickup-point.html index e70228f0..1e6ec7a3 100644 --- a/local/modules/ColissimoPickupPoint/templates/frontOffice/default/colissimo-pickup-point.html +++ b/local/modules/ColissimoPickupPoint/templates/frontOffice/default/colissimo-pickup-point.html @@ -54,7 +54,8 @@ // Define MAP var mapOptions = { zoom: 13, - mapTypeId: google.maps.MapTypeId.ROADMAP + mapTypeId: google.maps.MapTypeId.ROADMAP, + mapId: "COLISSIMO_MAP_ID" } // On va créer la map dans la div qui a l'id relaymap mapSOC.map = new google.maps.Map(document.getElementById('colissimopickuppointmap'), mapOptions); @@ -71,11 +72,12 @@ if (status == google.maps.GeocoderStatus.OK) { // Et on centre la map sur cette position mapSOC.map.setCenter(results[0].geometry.location); - marker = new google.maps.Marker({ + marker = new google.maps.marker.AdvancedMarkerElement({ position: new google.maps.LatLng(results[0].geometry.location.lat(), results[0].geometry.location.lng()), - map: mapSOC.map, - icon: "{image file='assets/img/maison.png' source='ColissimoPickupPoint'}" + map: mapSOC.map/*, + icon: "{image file='assets/img/maison.png' source='ColissimoPickupPoint'}"*/ }); + if (mapSOC.position != null){ mapSOC.position.setMap(null); } @@ -145,10 +147,11 @@ '' + ''; - marker = new google.maps.Marker({ + marker = new google.maps.marker.AdvancedMarkerElement({ position: new google.maps.LatLng(loc.lat, loc.lng), - map: mapSOC.map, + map: mapSOC.map/*, icon: mapSOC.images[loc.type] + */ }); mapSOC.listMarker.push(marker); @@ -397,11 +400,8 @@ - - - {/ifloop} @@ -412,20 +412,52 @@ diff --git a/templates/frontOffice/capbretagne/order-delivery.html b/templates/frontOffice/capbretagne/order-delivery.html index bb12f6ea..03fd0bea 100644 --- a/templates/frontOffice/capbretagne/order-delivery.html +++ b/templates/frontOffice/capbretagne/order-delivery.html @@ -151,6 +151,16 @@ {block name="javascript-initialization"} + + +