Hello,
i am trying to reload or redraw a google map within dhxLayout.cells.
The dhtmlXLayoutObject i am using is “2U”.
i have a grid in cells(‘a’) and a Google map attached to cells(‘b’) as follwing:
var b = dhxLayout.cells(‘b’);
b.setText(‘Google-Map’);
GMaps = dhxLayout.cells("b").attachMap(opts);
dhxLayout.attachEvent("onPanelResizeFinish", function() {
// notify GMaps that parent dimension was changed;
google.maps.event.trigger(GMaps, "resize");
I have put an KML-Overlay to the Map and loading the map with the overlay is working fine.
Now i have different overlays in my grid and i wanted to reload the google map with a new overlay with grid_2.attachEvent(“onRowSelect”, function(id,ind){ “refreshing map function” }.
I have managed to make an new url for the KML-Overlay , which is coming from a local webserver via http , but i have found no way to reload or redraw a Google Map into GMAPs.
I have tried to detach the map and reattach it, bu this did not work. i have looked for an unload or reload function for maps but haven`t found any.
I have no idea how to reload the map.
Has anybody any suggestions for a workaround? Any help is appreciated.
Thank you for reading my problem.
Best Regards,
Harald