I'm trying to simple load a page with a generic google maps v3 using gwt and jsni and I'm getting this error in the console:
Refused to display document because display forbidden by X-Frame-Options.
I think that the problem is that the browser refuses to load the page so I have to load the page differently but I can´t find the solution, I'm stuck with this problem!
My code:
public void onModuleLoad() {
initialize();
}
native void initialize() /*-{
var mapOptions = {
center: new $wnd.google.maps.LatLng(-34.397, 150.644),
zoom: 8,
mapTypeId: $wnd.google.maps.MapTypeId.ROADMAP
};
var map = new $wnd.google.maps.Map($doc.getElementById("map_canvas"), mapOptions);
}-*/;