Skip to content

Commit 1fb6122

Browse files
committed
Treat innerHTML as JSAny
1 parent 3201e5d commit 1fb6122

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
@@ -437,7 +437,7 @@ Future<Node?> _advancedMarkerIconFromBitmapDescriptor(
437437
if (glyph.text != null) {
438438
// Set glyph text and text color
439439
final web.Element element = document.createElement('p');
440-
element.innerHTML = glyph.text!;
440+
element.innerHTML = glyph.text!.toJS;
441441
if (glyph.textColor != null) {
442442
element.setAttribute(
443443
'style',

0 commit comments

Comments
 (0)