mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-06 19:12:23 +00:00
bug6098: drive-by enhancement: support fractional zoom; fixed auto-zoom ending
This commit is contained in:
1 parent
9ff9f47c08
commit
f507e705f0
11 files changed
+62
-45
No files matched your search
+2
-2
@@ -196,7 +196,7 @@ public class MapImpl extends MVCObject<MapImpl> {
|
||||
/**
|
||||
* get zoom
|
||||
*/
|
||||
public final native int getZoom() /*-{
|
||||
public final native double getZoom() /*-{
|
||||
return this.getZoom();
|
||||
}-*/;
|
||||
|
||||
@@ -312,7 +312,7 @@ public class MapImpl extends MVCObject<MapImpl> {
|
||||
*
|
||||
* @param zoom
|
||||
*/
|
||||
public final native void setZoom(int zoom) /*-{
|
||||
public final native void setZoom(double zoom) /*-{
|
||||
this.setZoom(zoom);
|
||||
}-*/;
|
||||
|
||||
|
||||
+18
@@ -274,6 +274,24 @@ public class MapOptions extends JavaScriptObject {
|
||||
this.keyboardShortcuts = keyboardShortcuts;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* Vector maps support fractional zoom, which lets you zoom using fractional values instead of integers. While both
|
||||
* raster and vector maps support fractional zoom, fractional zoom is on by default for vector maps, and off by
|
||||
* default for raster maps. Use the isFractionalZoomEnabled map option to turn fractional zoom on and off.
|
||||
*/
|
||||
public final native boolean getIsFractionalZoomEnabled() /*-{
|
||||
return isFractionalZoomEnabled;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* Vector maps support fractional zoom, which lets you zoom using fractional values instead of integers. While both
|
||||
* raster and vector maps support fractional zoom, fractional zoom is on by default for vector maps, and off by
|
||||
* default for raster maps. Use the isFractionalZoomEnabled map option to turn fractional zoom on and off.
|
||||
*/
|
||||
public final native void setIsFractionalZoomEnabled(boolean isFractionalZoomEnabled) /*-{
|
||||
this.isFractionalZoomEnabled = isFractionalZoomEnabled;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* get If false, prevents the map from being controlled by the keyboard. Keyboard shortcuts are enabled by default.
|
||||
*
|
||||
|
||||
+2
-2
@@ -224,7 +224,7 @@ public class MapWidget extends MVCObjectWidget<MapImpl> {
|
||||
/**
|
||||
* get zoom
|
||||
*/
|
||||
public int getZoom() {
|
||||
public double getZoom() {
|
||||
return impl.getZoom();
|
||||
};
|
||||
|
||||
@@ -336,7 +336,7 @@ public class MapWidget extends MVCObjectWidget<MapImpl> {
|
||||
*
|
||||
* @param zoom
|
||||
*/
|
||||
public void setZoom(int zoom) {
|
||||
public void setZoom(double zoom) {
|
||||
impl.setZoom(zoom);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user