yii2-leaflet-extension
yii2-leaflet-extension copied to clipboard
modal window
I have a issue with the use of the widget bootstrap modal window When I call Ajax and get html code, the map is drawn wrong
I found a solution by making the setTimeout in my widget myMap extends Map
public function registerScript(){
...
$view->registerJs("function {$name}_init(){\n" . implode("\n", $js) . "}\nsetTimeout({$name}_init,100);");
}
This solve the problem in every map that is hidden while created.
Nice solution thanks.
I'll think about adding delay option