registerWith static method
Registers the ola_map_view_flutter HtmlElementView factory.
Implementation
static void registerWith(Registrar registrar) {
ui_web.platformViewRegistry.registerViewFactory(
'ola_map_view_flutter',
(int viewId) {
final element = web.HTMLDivElement()
..id = 'ola-map-view-$viewId'
..style.width = '100%'
..style.height = '100%'
..style.position = 'relative';
OlaMapsWebHost(viewId, element);
return element;
},
);
}