Join Slack
Powered by
How can you use external definitions of google map...
# javascript
g
gaetan
05/07/2018, 11:13 PM
How can you use external definitions of google maps API with a module loaded directly from a script tag in the html page?
gaetan
05/14/2018, 9:46 AM
@bashor
to be more precise: Google Maps is loaded with its own mechanism. I need good interoperability with my kotlin code (something like
https://www.codeproject.com/Articles/1033708/Learning-Typescript-and-building-a-google-map-with
) So I have created external classes/interfaces based on typescript definition. But if I put
Copy code
@file:JsNonModule @file:JsModule("google.maps")
in my code, require.js tries to load it.
gaetan
05/14/2018, 11:23 AM
AutoResponse ;-): It’s possible to define external classes, interfaces with
@file:JsQualifier("google.maps")
b
bashor
05/25/2018, 4:05 PM
@gaetan
sorry for delay, looks like you had solved all issues.
8
Views
Open in Slack
Previous
Next