Skip to content

Commit 5e563c4

Browse files
committed
Treat innerHTML as JSAny
1 parent a82ba31 commit 5e563c4

File tree

1 file changed

+1
-1
lines changed
  • packages/google_maps_flutter/google_maps_flutter_web/lib/src

1 file changed

+1
-1
lines changed

packages/google_maps_flutter/google_maps_flutter_web/lib/src/convert.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Future<Node?> _advancedMarkerIconFromBitmapDescriptor(
419419
if (glyph.text != null) {
420420
// Set glyph text and text color
421421
final web.Element element = document.createElement('p');
422-
element.innerHTML = glyph.text!;
422+
element.innerHTML = glyph.text!.toJS;
423423
if (glyph.textColor != null) {
424424
element.setAttribute(
425425
'style',

0 commit comments

Comments
 (0)