|
146 | 146 | import com.sap.sailing.gwt.ui.shared.racemap.CanvasOverlayV3; |
147 | 147 | import com.sap.sailing.gwt.ui.shared.racemap.DetailTypeMetricOverlay; |
148 | 148 | import com.sap.sailing.gwt.ui.shared.racemap.GoogleMapStyleHelper; |
149 | | -import com.sap.sailing.gwt.ui.shared.racemap.GoogleMapsLoader; |
| 149 | +import com.sap.sailing.gwt.ui.shared.racemap.MapsLoader; |
150 | 150 | import com.sap.sailing.gwt.ui.shared.racemap.RaceSimulationOverlay; |
151 | 151 | import com.sap.sailing.gwt.ui.shared.racemap.WindStreamletsRaceboardOverlay; |
152 | 152 | import com.sap.sse.common.Bearing; |
@@ -1076,7 +1076,7 @@ public void onFailure(Throwable caught) { |
1076 | 1076 |
|
1077 | 1077 | @Override |
1078 | 1078 | public void onSuccess(String googleMapsLoaderAuthenticationParams) { |
1079 | | - GoogleMapsLoader.load(onLoad, googleMapsLoaderAuthenticationParams); |
| 1079 | + MapsLoader.load(onLoad, googleMapsLoaderAuthenticationParams); |
1080 | 1080 | } |
1081 | 1081 | }); |
1082 | 1082 | } |
@@ -3312,7 +3312,7 @@ public void updateSettings(RaceMapSettings newSettings) { |
3312 | 3312 | if (newSettings.isShowSatelliteLayer() != settings.isShowSatelliteLayer()) { |
3313 | 3313 | requiresUpdateCoordinateSystem = true; |
3314 | 3314 | } |
3315 | | - if (GoogleMapsLoader.isMapLibreRequested() && newSettings.isShowSeaMarks() != settings.isShowSeaMarks()) { |
| 3315 | + if (MapsLoader.isMapLibreRequested() && newSettings.isShowSeaMarks() != settings.isShowSeaMarks()) { |
3316 | 3316 | MapOptions mapOptions = MapOptions.newInstance(/* withdefaults */ false); |
3317 | 3317 | mapOptions.setSeaMarksVisible(newSettings.isShowSeaMarks()); |
3318 | 3318 | map.setOptions(mapOptions); |
@@ -3780,14 +3780,14 @@ private MapOptions getMapOptions(boolean windUp, boolean showSatelliteLayer, boo |
3780 | 3780 | // no need to try to position the scale control; it always ends up at the right bottom corner |
3781 | 3781 | mapOptions.setStreetViewControl(false); |
3782 | 3782 | mapOptions.setIsFractionalZoomEnabled(true); |
3783 | | - if (GoogleMapsLoader.isMapLibreRequested()) { |
| 3783 | + if (MapsLoader.isMapLibreRequested()) { |
3784 | 3784 | mapOptions.setSeaMarksVisible(showSeaMarks); |
3785 | 3785 | } |
3786 | 3786 | return mapOptions; |
3787 | 3787 | } |
3788 | 3788 |
|
3789 | 3789 | private String getMapTypeId(boolean windUp, boolean showSatelliteLayer) { |
3790 | | - return showSatelliteLayer && (!windUp || GoogleMapsLoader.isMapLibreRequested()) |
| 3790 | + return showSatelliteLayer && (!windUp || MapsLoader.isMapLibreRequested()) |
3791 | 3791 | ? MapTypeId.SATELLITE.toString() : SAILING_ANALYTICS_MAP_TYPE_ID; |
3792 | 3792 | } |
3793 | 3793 |
|
|
0 commit comments