Skip to content

Commit

Permalink
Bugfix DrawingManager.SetDrawingMode no longer works in 3.3.2 and newer
Browse files Browse the repository at this point in the history
  • Loading branch information
valentas-deltamina committed Mar 20, 2024
1 parent 28cc25d commit 3d841ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GoogleMapsComponents/wwwroot/js/objectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3d841ca

Please sign in to comment.