My problem:
- I display a map inside a popup and I have unloaded tiles (grey background).
- If I zoom out or in, then the map will fill the entire space (no grey background anymore).
My question:
- Have you any idea about my problem (Should I need to resize to hide the "grey background") ?
- I do not know if I should call onResize() inside the Runnable callback (code is above) or not ?
Thanks you,
My actual code: (I am using the javaxLoaderAPI)
// ENTRY POINT
GoogleMap map; @UiField LayoutPanel gmap; public void AjaxLoader_MAP() { AjaxLoaderOptions options = AjaxLoaderOptions.newInstance(); options.setOtherParms("key=***&sensor=false&language=es"); Runnable callback = new Runnable() { public void run() { gmap.onResize(); // Should I call onResize() here ? map = GoogleMap.create(gmap.getElement()); }; } AjaxLoader.loadApi("maps", "3", callback, options); }
May be related to the following post - GWT Google Map Api V3 - broken when changing it
I just posted an answer to that unanswered post as well. I believe it answers and sheds insight on this one as well.
I know this is an old post, but let me know if helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With