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