From 3d841ca46b359f95563f276ba84c7e694322aafd Mon Sep 17 00:00:00 2001 From: ValentasDeltamina Date: Wed, 20 Mar 2024 21:35:48 +0200 Subject: [PATCH] Bugfix DrawingManager.SetDrawingMode no longer works in 3.3.2 and newer #320 --- GoogleMapsComponents/wwwroot/js/objectManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GoogleMapsComponents/wwwroot/js/objectManager.js b/GoogleMapsComponents/wwwroot/js/objectManager.js index e39ffed4..af397c32 100644 --- a/GoogleMapsComponents/wwwroot/js/objectManager.js +++ b/GoogleMapsComponents/wwwroot/js/objectManager.js @@ -121,9 +121,9 @@ } } - if (typeof item2 === "string" && item2 !== null) { - if (item2.startsWith("google.maps.drawing.OverlayType")) { - switch (item2) { + if (item2 === "polyline" && item2 !== null) { + if (item.startsWith("google.maps.drawing.OverlayType")) { + switch (item) { case "google.maps.drawing.OverlayType.CIRCLE": item2 = google.maps.drawing.OverlayType.CIRCLE; break;