Wednesday, April 29, 2020

Re: Wrap google.maps with JSInterop

Your post made me check if the external JS had been loaded and sure enough it hadn't. Turned out it was being downloaded over http instead of https and therefore rejected. Simple mistake, thank you for pointing me in the right direction.

On Wed, Apr 29, 2020 at 9:18 AM Jens <jens.nehlmeier@gmail.com> wrote:

I have set the compile flag:
-generateJsInteropExports

You only need this when using @JsType(isNative = false) in your code.

Generally you have to wait until external JS has been loaded before you can access it in your GWT code. Maybe your GWT code runs too early?


-- J.

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/tKCb17530XE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/6b3de4da-22d2-463c-9edf-2096c5a0af09%40googlegroups.com.


--
Carl Rahmström
+46 (0)70 827 00 58

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAE5aUnmeq8NULKi89oJ%3DFBKpsvbLj%3DfgDUoqZbf5uCb1iO0sQQ%40mail.gmail.com.

No comments:

Post a Comment