Skip to content

Commit

Permalink
updated visibility of options fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zak905 committed Jul 22, 2016
1 parent 6780cba commit 669ff6c
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 53 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ target/
dependency-reduced-pom.xml
.settings
.classpath
.project
.project

bin/

maven-sign-and-deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ public class FitBoundsOptions {

// fitBounds options
@JsProperty
Point paddingTopLeft = L.point(0, 0, true);
public Point paddingTopLeft = L.point(0, 0, true);
@JsProperty
Point paddingBottomRight = L.point(0, 0, true);
public Point paddingBottomRight = L.point(0, 0, true);
@JsProperty
Point padding = L.point(0, 0, true);
public Point padding = L.point(0, 0, true);

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
@JsType
public interface GeoJSONOptions {

Function pointToLayer(JavaScriptObject featureData, LatLng latlng);
public Function pointToLayer(JavaScriptObject featureData, LatLng latlng);

Function style(JavaScriptObject featureData);
public Function style(JavaScriptObject featureData);

Function onEachFeature(JavaScriptObject featureData, ILayer layer);
public Function onEachFeature(JavaScriptObject featureData, ILayer layer);

Function filter(JavaScriptObject featureData, ILayer layer);
public Function filter(JavaScriptObject featureData, ILayer layer);

Function coordsToLatLng(JsArray<JavaScriptObject> coords);
public Function coordsToLatLng(JsArray<JavaScriptObject> coords);

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
public class LocateOptions {

@JsProperty
Boolean watch = false;
public Boolean watch = false;
@JsProperty
Boolean setView = false;
public Boolean setView = false;
@JsProperty
Number maxZoomLocate = Double.POSITIVE_INFINITY;
public Number maxZoomLocate = Double.POSITIVE_INFINITY;
@JsProperty
Number timeout = 10000;
public Number timeout = 10000;
@JsProperty
Number maximumAge = 0;
public Number maximumAge = 0;
@JsProperty
Boolean enableHighAccuracy = false;
public Boolean enableHighAccuracy = false;

}
58 changes: 29 additions & 29 deletions src/main/java/com/gwidgets/api/leaflet/options/MapOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,75 +12,75 @@ public class MapOptions {

// Map State Options
@JsProperty
LatLng center = null;
public LatLng center = null;
@JsProperty
Number zoom = null;
public Number zoom = null;
@JsProperty
ILayer[] layers = null;
public ILayer[] layers = null;
@JsProperty
Number minZoom = null;
public Number minZoom = null;
@JsProperty
Number maxZoom = null;
public Number maxZoom = null;
@JsProperty
LatLngBounds maxBounds = null;
public LatLngBounds maxBounds = null;
// @JsProperty
// CRS crs = L.CRS.EPSG3857;

// Interaction Options
@JsProperty
Boolean dragging = true;
public Boolean dragging = true;
@JsProperty
Boolean touchZoom = true;
public Boolean touchZoom = true;
@JsProperty
Boolean scrollWheelZoom = true;
public Boolean scrollWheelZoom = true;
@JsProperty
Boolean doubleClickZoom = true;
public Boolean doubleClickZoom = true;
@JsProperty
Boolean boxZoom = true;
public Boolean boxZoom = true;
@JsProperty
Boolean tap = true;
public Boolean tap = true;
@JsProperty
Number tapTolerance = 15;
public Number tapTolerance = 15;
@JsProperty
Boolean trackResize = true;
public Boolean trackResize = true;
@JsProperty
Boolean worldCopyJump = false;
public Boolean worldCopyJump = false;
@JsProperty
Boolean closePopupOnClick = true;
public Boolean closePopupOnClick = true;

// Keyboard Navigation Options
@JsProperty
Boolean keyboard = true;
public Boolean keyboard = true;
@JsProperty
Number keyboardPanOffset = 80;
public Number keyboardPanOffset = 80;
@JsProperty
Number keyboardZoomOffset = 1;
public Number keyboardZoomOffset = 1;

// Panning Inertia Options
@JsProperty
Boolean inertia = true;
public Boolean inertia = true;
@JsProperty
Number inertiaDeceleration = 3000;
public Number inertiaDeceleration = 3000;
@JsProperty
Number inertiaMaxSpeed = 1500;
public Number inertiaMaxSpeed = 1500;
@JsProperty
Number inertiaThreshold = 32;
public Number inertiaThreshold = 32;

// Control options
@JsProperty
Boolean zoomControl = true;
public Boolean zoomControl = true;
@JsProperty
Boolean attributionControl = true;
public Boolean attributionControl = true;

// Animation options
@JsProperty
Boolean fadeAnimation = true;
public Boolean fadeAnimation = true;
@JsProperty
Boolean zoomAnimation = true;
public Boolean zoomAnimation = true;
@JsProperty
Number zoomAnimationThreshold = 4;
public Number zoomAnimationThreshold = 4;
@JsProperty
Boolean markerZoomAnimation = true;
public Boolean markerZoomAnimation = true;

// Locate options

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ public class PanOptions {

// Pan options
@JsProperty
Boolean animate = true;
public Boolean animate = true;
@JsProperty
Number duration = 0.25;
public Number duration = 0.25;
@JsProperty
Number easeLinearity = 0.25;
public Number easeLinearity = 0.25;
@JsProperty
Boolean noMoveStart = false;
public Boolean noMoveStart = false;

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class ZoomOptions {

// Zoom options
@JsProperty
Boolean animate = true;
public Boolean animate = true;

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ public class ZoomPanOptions {

// Zoom/pan options
@JsProperty
Boolean reset = false;
public Boolean reset = false;
@JsProperty
PanOptions pan = null;
public PanOptions pan = null;
@JsProperty
ZoomOptions zoom = null;
public ZoomOptions zoom = null;
@JsProperty
Boolean animate = true;
public Boolean animate = true;

}

0 comments on commit 669ff6c

Please sign in to comment.