I load a js file using ViewLoader.
In this js file I have the definition of a GoogleMap canvas as you suggest (
).
In the same js I create an istance of GoogleMap Canvas and set as a member of VLayout.
When tha main page load the js file using a ViewLoader I see gray flash on a GoogleMaps Canvas position and then the canvas become transparent and no maps are showed.
If I use the same GoogleMaps Canvas directly in main page without use ViewLoader it works.
There is a workaround to use ViewLoader and GoogleMaps Canvas. Can you explain the cause please.
Thanks.
In this js file I have the definition of a GoogleMap canvas as you suggest (
Code:
isc.defineClass("GoogleMap","Canvas").addProperties({...etc
In the same js I create an istance of GoogleMap Canvas and set as a member of VLayout.
When tha main page load the js file using a ViewLoader I see gray flash on a GoogleMaps Canvas position and then the canvas become transparent and no maps are showed.
If I use the same GoogleMaps Canvas directly in main page without use ViewLoader it works.
There is a workaround to use ViewLoader and GoogleMaps Canvas. Can you explain the cause please.
Thanks.
Comment