yii2-leaflet-extension icon indicating copy to clipboard operation
yii2-leaflet-extension copied to clipboard

modal window

Open nailfor opened this issue 8 years ago • 2 comments

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);");
}

nailfor avatar Apr 29 '16 08:04 nailfor

This solve the problem in every map that is hidden while created.

Nice solution thanks.

ToRvaLDz avatar Jul 30 '16 10:07 ToRvaLDz

I'll think about adding delay option

tonydspaniard avatar Sep 10 '16 23:09 tonydspaniard