mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 11:32:16 +00:00
bug6098: use legacy RotateAndTranslateCoordinateSystem in case of RASTER fallback;
the NonCardinalBounds zoom approach now causes trouble because of coordinate system confusion
This commit is contained in:
1 parent
ebbc89532a
commit
1ce46444ee
3 files changed
+78
-5
No files matched your search
+13
@@ -152,6 +152,19 @@ public class MapImpl extends MVCObject<MapImpl> {
|
||||
return this.getHeading() || 0;
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* gets {@link RenderingType}
|
||||
*
|
||||
* @return {@link RenderingType}
|
||||
*/
|
||||
public final RenderingType getRenderingType() {
|
||||
return RenderingType.valueOf(getRenderingTypeImpl().toUpperCase());
|
||||
}
|
||||
|
||||
private final native String getRenderingTypeImpl() /*-{
|
||||
return this.getRenderingType();
|
||||
}-*/;
|
||||
|
||||
/**
|
||||
* gets {@link MapTypeId}
|
||||
*
|
||||
|
||||
+20
@@ -46,6 +46,7 @@ import com.google.gwt.maps.client.events.mousemove.MouseMoveMapHandler;
|
||||
import com.google.gwt.maps.client.events.mouseout.MouseOutMapHandler;
|
||||
import com.google.gwt.maps.client.events.mouseover.MouseOverMapHandler;
|
||||
import com.google.gwt.maps.client.events.projection.ProjectionChangeMapHandler;
|
||||
import com.google.gwt.maps.client.events.renderingtype.RenderingTypeChangeMapHandler;
|
||||
import com.google.gwt.maps.client.events.resize.ResizeMapHandler;
|
||||
import com.google.gwt.maps.client.events.rightclick.RightClickMapHandler;
|
||||
import com.google.gwt.maps.client.events.tiles.TilesLoadedMapHandler;
|
||||
@@ -191,6 +192,15 @@ public class MapWidget extends MVCObjectWidget<MapImpl> {
|
||||
return impl.getMapTypeId();
|
||||
}
|
||||
|
||||
/**
|
||||
* gets {@link RenderingType}
|
||||
*
|
||||
* @return {@link RenderingType}
|
||||
*/
|
||||
public final RenderingType getRenderingType() {
|
||||
return impl.getRenderingType();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current Projection. If the map is not yet initialized (i.e. the mapType is still null) then the result
|
||||
* is null. Listen to projection_changed and check its value to ensure it is not null.
|
||||
@@ -656,6 +666,16 @@ public class MapWidget extends MVCObjectWidget<MapImpl> {
|
||||
return impl.addZoomChangeHandler(handler);
|
||||
}
|
||||
|
||||
/**
|
||||
* This event is fired when the map zoom property changes.
|
||||
*
|
||||
* @param handler {@link ZoomChangeMapHandler}
|
||||
* @return {@link MapHandlerRegistration}
|
||||
*/
|
||||
public HandlerRegistration addRenderingTypeChangeHandler(RenderingTypeChangeMapHandler handler) {
|
||||
return impl.addRenderingTypeChangeHandler(handler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Has to be called to resize the map if the canvas has changed.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user