mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-16 07:10:48 +00:00
bug2823: Snapshot from 2021-06-14
This commit is contained in:
1 parent
7836661757
commit
24440f2247
13 files changed
+402
-107
No files matched your search
+15
@@ -200,6 +200,21 @@ public class MapImpl extends MVCObject<MapImpl> {
|
||||
return this.getZoom();
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* get FullscreenControl
|
||||
*/
|
||||
public final native void enterFullscreen() /*-{
|
||||
console.log("requestFullscreen: " + this);
|
||||
console.log("requestFullscreen: " + this.panControl);
|
||||
if (this.document.requestFullscreen) {
|
||||
this.document.requestFullscreen();
|
||||
} else if (document.getElementById("hhgghh").webkitRequestFullscreen) {
|
||||
document.getElementById("hhgghh").webkitRequestFullscreen();
|
||||
} else if (document.getElementById("hhgghh").msRequestFullscreen) {
|
||||
document.getElementById("hhgghh").msRequestFullscreen();
|
||||
}
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* Changes the center of the map by the given distance in pixels. If the distance is less than both the width and
|
||||
* height of the map, the transition will be smoothly animated. Note that the map coordinate system increases from
|
||||
|
||||
+36
@@ -24,6 +24,7 @@ import com.google.gwt.ajaxloader.client.ArrayHelper;
|
||||
import com.google.gwt.core.client.JavaScriptObject;
|
||||
import com.google.gwt.core.client.JsArray;
|
||||
import com.google.gwt.maps.client.base.LatLng;
|
||||
import com.google.gwt.maps.client.controls.FullscreenControlOptions;
|
||||
import com.google.gwt.maps.client.controls.MapTypeControlOptions;
|
||||
import com.google.gwt.maps.client.controls.MapTypeStyle;
|
||||
import com.google.gwt.maps.client.controls.OverviewMapControlOptions;
|
||||
@@ -107,6 +108,7 @@ public class MapOptions extends JavaScriptObject {
|
||||
options.setPanControl(true);
|
||||
options.setZoomControl(true);
|
||||
options.setMapMaker(false);
|
||||
options.setFullscreenControlOptions(null);
|
||||
// Max/Min zoom not set with default here because it depends on the map type in use
|
||||
// We don't want to risk overriding that
|
||||
}
|
||||
@@ -742,4 +744,38 @@ public class MapOptions extends JavaScriptObject {
|
||||
return this.zoomControlOptions;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* The enabled/disabled state of the Fullscreen control.
|
||||
*
|
||||
* @param zoom
|
||||
*/
|
||||
public final native void setFullscreenControl(boolean fullscreenControl) /*-{
|
||||
this.fullscreenControl = fullscreenControl;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* get the Fullscreen control value.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public final native boolean getFullscreenControl() /*-{
|
||||
return this.fullscreenControl;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* sets The display options for the Fullscreen control.
|
||||
*
|
||||
* @param fullscreenControlOptions
|
||||
*/
|
||||
public final native void setFullscreenControlOptions(FullscreenControlOptions fullscreenControlOptions) /*-{
|
||||
this.fullscreenControlOptions = fullscreenControlOptions;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* gets The display options for the Fullscreen control.
|
||||
*/
|
||||
public final native FullscreenControlOptions getFullscreenControlOptions() /*-{
|
||||
return this.fullscreenControlOptions;
|
||||
}-*/;
|
||||
|
||||
}
|
||||
+4
@@ -339,6 +339,10 @@ public class MapWidget extends MVCObjectWidget<MapImpl> {
|
||||
public void setZoom(int zoom) {
|
||||
impl.setZoom(zoom);
|
||||
};
|
||||
|
||||
public void enterFullscreen() {
|
||||
impl.enterFullscreen();
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO sets Additional controls to attach to the map. To add a control to the map, add the control's
|
||||
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.google.gwt.maps.client.controls;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* GWT Maps API V3 - Core API
|
||||
* %%
|
||||
* Copyright (C) 2011 - 2012 GWT Maps API V3
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import com.google.gwt.core.client.JavaScriptObject;
|
||||
|
||||
/**
|
||||
* Options for the rendering of the fullscreen control. <br>
|
||||
* <br>
|
||||
* See <a
|
||||
* href="https://developers.google.com/maps/documentation/javascript/reference#FullscreenControlOptions">FullscreenControlOptions
|
||||
* API Doc</a>
|
||||
*/
|
||||
public class FullscreenControlOptions extends JavaScriptObject {
|
||||
|
||||
/**
|
||||
* creates Options for the rendering of the zoom control.
|
||||
*/
|
||||
public final static FullscreenControlOptions newInstance() {
|
||||
return JavaScriptObject.createObject().cast();
|
||||
}
|
||||
|
||||
/**
|
||||
* Options for the rendering of the zoom control. use newInstance();
|
||||
*/
|
||||
protected FullscreenControlOptions() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Position id. Used to specify the position of the control on the map. The default position is TOP_LEFT.
|
||||
*/
|
||||
public final ControlPosition getPosition() {
|
||||
return ControlPosition.fromValue(getPositionImpl());
|
||||
}
|
||||
|
||||
private final native int getPositionImpl() /*-{
|
||||
return this.position;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* Position id. Used to specify the position of the control on the map. The default position is TOP_LEFT.
|
||||
*
|
||||
* @param position {@link ControlPosition}
|
||||
*/
|
||||
public final void setPosition(ControlPosition position) {
|
||||
setPositionImpl(position.value());
|
||||
}
|
||||
|
||||
private final native void setPositionImpl(int position) /*-{
|
||||
this.position = position;
|
||||
}-*/;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user