createHtml method
void
createHtml()
Implementation
void createHtml() {
final body = html.window.document.querySelector('body')!;
debugPrint("div added iframe");
if (html.window.document.getElementById("osm_interop") == null) {
body.append(html.ScriptElement()
..id = "osm_interop"
..src =
'${kReleaseMode ? "assets/" : ''}packages/flutter_osm_web/src/asset/osm_interop.js'
..type = 'text/javascript');
}
if (html.window.document.getElementById("mapScript") == null) {
mapScript = html.ScriptElement()
..id = "mapScript"
..src =
'${kReleaseMode ? "assets/" : ''}packages/flutter_osm_web/src/asset/map.js'
..type = 'text/javascript';
body.append(mapScript!);
}
}