org.gwtopenmaps.openlayers.client.MapWidget Java Examples

The following examples show how to use org.gwtopenmaps.openlayers.client.MapWidget. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MapPreviewWidget.java    From geofence with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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();
}
 
Example #2
Source File: GeoMap.java    From geowe-core with GNU General Public License v3.0 4 votes vote down vote up
public GeoMap() {
	final MapOptions defaultMapOptions = new MapOptions();
	defaultMapOptions.removeDefaultControls();
	mapWidget = new MapWidget("100%", "100%", defaultMapOptions);		
	getMap().addControl(navHistory);
}
 
Example #3
Source File: GeoMap.java    From geowe-core with GNU General Public License v3.0 4 votes vote down vote up
public MapWidget getMapWidget() {
	return mapWidget;
}
 
Example #4
Source File: StationSelector.java    From SensorWebClient with GNU General Public License v2.0 4 votes vote down vote up
private MapWidget createMapContent() {
	return controller.createMap();
}
 
Example #5
Source File: StationSelectorController.java    From SensorWebClient with GNU General Public License v2.0 4 votes vote down vote up
public MapWidget createMap() {
    return map.getMapWidget();
}
 
Example #6
Source File: Legend.java    From SensorWebClient with GNU General Public License v2.0 4 votes vote down vote up
private MapWidget createMapContent() {
    OverviewMapController controller = new OverviewMapController();
    return controller.createMap(); // TODO refactor

    // return new LegendMap().getLayout();
}
 
Example #7
Source File: OverviewMapController.java    From SensorWebClient with GNU General Public License v2.0 4 votes vote down vote up
public MapWidget createMap() {
	return map.getMapWidget();
}
 
Example #8
Source File: OpenLayersMapWrapper.java    From SensorWebClient with GNU General Public License v2.0 4 votes vote down vote up
private void initializeMapWidget(String cssHeight) {
    initializeDefaultMapOptions();
    mapWidget = new MapWidget("100%", cssHeight, defaultMapOptions);
    map = mapWidget.getMap();
    addMapControls(defaultMapOptions);
}
 
Example #9
Source File: OpenLayersMapWrapper.java    From SensorWebClient with GNU General Public License v2.0 4 votes vote down vote up
public MapWidget getMapWidget() {
    return mapWidget;
}
 
Example #10
Source File: OpenLayersMapWrapper.java    From SensorWebClient with GNU General Public License v2.0 4 votes vote down vote up
public void setMapWidget(MapWidget mapWidget) {
    this.mapWidget = mapWidget;
}
 
Example #11
Source File: MapPreviewWidget.java    From geofence with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Gets the map widget.
 *
 * @return the map widget
 */
public MapWidget getMapWidget()
{
    return mapWidget;
}
 
Example #12
Source File: MapController.java    From SensorWebClient with GNU General Public License v2.0 votes vote down vote up
public MapWidget createMap();