本文整理汇总了Java中org.gwtopenmaps.openlayers.client.layer.WMSOptions.setTransitionEffect方法的典型用法代码示例。如果您正苦于以下问题:Java WMSOptions.setTransitionEffect方法的具体用法?Java WMSOptions.setTransitionEffect怎么用?Java WMSOptions.setTransitionEffect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.gwtopenmaps.openlayers.client.layer.WMSOptions
的用法示例。
在下文中一共展示了WMSOptions.setTransitionEffect方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLayer
import org.gwtopenmaps.openlayers.client.layer.WMSOptions; //导入方法依赖的package包/类
@Override
public Layer getLayer() {
WMSParams wmsParams = new WMSParams();
wmsParams.setFormat(format);
wmsParams.setLayers(layerName);
wmsParams.setTransparent(true);
WMSOptions wmsLayerParams = new WMSOptions();
wmsLayerParams.setProjection(epsg);
wmsLayerParams.setTransitionEffect(TransitionEffect.RESIZE);
wmsLayerParams.setDisplayOutsideMaxExtent(true);
wmsLayerParams.setNumZoomLevels(GeoMapInitializer.MAX_NUM_ZOOM_LEVEL);
wmsLayerParams.setIsBaseLayer(true);
String attribution = getAttribution();
if(attribution != null) {
wmsLayerParams.setAttribution(attribution);
}
WMS wmsLayer = new WMS(getName(), url, wmsParams, wmsLayerParams);
wmsLayer.setIsBaseLayer(false);
return wmsLayer;
}
示例2: addBaseLayer
import org.gwtopenmaps.openlayers.client.layer.WMSOptions; //导入方法依赖的package包/类
/**
*
*/
private void addBaseLayer()
{
GeofenceGlobalConfiguration geoFenceConfiguration = (GeofenceGlobalConfiguration) GeofenceUtils.getInstance().getGlobalConfiguration();
/* base layer */
WMSParams wmsParams = new WMSParams();
wmsParams.setLayers(geoFenceConfiguration.getBaseLayerName());
wmsParams.setFormat(geoFenceConfiguration.getBaseLayerFormat());
wmsParams.setStyles(geoFenceConfiguration.getBaseLayerStyle());
WMSOptions wmsLayerParams = new WMSOptions();
wmsLayerParams.setTransitionEffect(TransitionEffect.RESIZE);
WMS layer = new WMS(geoFenceConfiguration.getBaseLayerTitle(),
geoFenceConfiguration.getBaseLayerURL(), wmsParams, wmsLayerParams);
Dispatcher.forwardEvent(GeoGWTEvents.ADD_LAYER, layer);
}
示例3: initMapWidget
import org.gwtopenmaps.openlayers.client.layer.WMSOptions; //导入方法依赖的package包/类
/**
* Inits the map widget.
*
* @param defaultMapOptions
* the default map options
* @param isGoogle
* the is google
*/
private void initMapWidget(MapOptions defaultMapOptions, boolean isGoogle)
{
mapWidget = new MapWidget("100%", "100%", defaultMapOptions);
this.map = mapWidget.getMap();
// this.map.addControl(new LayerSwitcher());
if (isGoogle)
{
this.createOSM();
// this.createBaseGoogleLayer();
}
else
{
WMSParams wmsParams = new WMSParams();
wmsParams.setFormat("image/png");
wmsParams.setLayers("basic");
wmsParams.setStyles("");
WMSOptions wmsLayerParams = new WMSOptions();
wmsLayerParams.setTransitionEffect(TransitionEffect.RESIZE);
layer = new WMS("Basic WMS", "http://labs.metacarta.com/wms/vmap0", wmsParams,
wmsLayerParams);
this.map.addLayer(layer);
}
this.initVectorLayer();
}
示例4: MapArea
import org.gwtopenmaps.openlayers.client.layer.WMSOptions; //导入方法依赖的package包/类
public MapArea(int width, int height, final GodivaActionsHandler godivaListener,
String proxyUrl, FixedLayerDetails... additionalLayers) {
super(width + "px", height + "px", getDefaultMapOptions());
if (proxyUrl == null) {
this.proxyUrl = "";
} else {
this.proxyUrl = proxyUrl;
}
wmsLayers = new LinkedHashMap<>();
overLayers = new HashMap<>();
converters = new HashMap<>();
/*
* Define some listeners to handle layer start/end loading events
*/
loadStartListener = new LayerLoadStartListener() {
@Override
public void onLoadStart(LoadStartEvent eventObject) {
godivaListener.setLoading(true);
}
};
loadCancelListener = new LayerLoadCancelListener() {
@Override
public void onLoadCancel(LoadCancelEvent eventObject) {
godivaListener.setLoading(false);
}
};
loadEndListener = new LayerLoadEndListener() {
@Override
public void onLoadEnd(LoadEndEvent eventObject) {
godivaListener.setLoading(false);
}
};
this.widgetDisabler = godivaListener;
init(additionalLayers);
map.addMapMoveListener(godivaListener);
map.addMapZoomListener(godivaListener);
wmsStandardOptions = new WMSOptions();
wmsStandardOptions.setWrapDateLine(true);
wmsStandardOptions.setTransitionEffect(TransitionEffect.RESIZE);
}