I'm trying to wrap google.maps with JSInterop. Everything works perfectly locally with SDM but when I perform a full compile and deploy to App Engine I get:
(TypeError) : undefined is not an object (evaluating 'new (wuc[l]=FZc+fwc,$wnd).google.maps')
at this line:
LatLng latLng = new LatLng(62.3875, 16.325556);
LatLng.java:
-----------------
package console.map;
import jsinterop.annotations.JsConstructor;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = "google.maps")
public class LatLng {
@JsConstructor
public LatLng(double lat, double lng) {}
@JsProperty
public native double getLat();
@JsProperty
public native void setLat(double lat);
@JsProperty
public native double getLng();
@JsProperty
public native void setLng(double lng);
}
-------------------
I have set the compile flag:
-generateJsInteropExports
What's wrong?