Tabnine Logo
MapWidget.getMap
Code IndexAdd Tabnine to your IDE (free)

How to use
getMap
method
in
org.gwtopenmaps.openlayers.client.MapWidget

Best Java code snippets using org.gwtopenmaps.openlayers.client.MapWidget.getMap (Showing top 6 results out of 315)

origin: geosdi/GWT-OpenLayers

  public void execute() {
    getMap().updateSize();
  }
});
origin: geosdi/GWT-OpenLayers

  public void onResize() {
    getMap().updateSize();
  }
}
origin: org.gwtopenmaps.openlayers/openlayers_gwt

  public void execute() {
    getMap().updateSize();
  }
});
origin: org.n52.sensorweb/sensorwebclient-ui

private void initializeMapWidget(String cssHeight) {
  initializeDefaultMapOptions();
  mapWidget = new MapWidget("100%", cssHeight, defaultMapOptions);
  map = mapWidget.getMap();
  addMapControls(defaultMapOptions);
}
origin: stackoverflow.com

public void onModuleLoad()
 {
   MapOptions mapOptions = new MapOptions();
   MapWidget mapWidget = new MapWidget( "400px", "300px", mapOptions );
   OSM osm_1 = OSM.Mapnik( "Mapnik" );
   OSM osm_2 = OSM.CycleMap( "CycleMap" );
   osm_1.setIsBaseLayer( true );
   osm_2.setIsBaseLayer( true );
   LonLat lonLat = new LonLat( 6.95, 50.94 );
   lonLat.transform( "EPSG:4326", "EPSG:900913" );
   Map map = mapWidget.getMap();
   map.addLayer( osm_1 );
   map.addLayer( osm_2 );
   map.addControl( new LayerSwitcher() );
   map.addControl( new MousePosition() );
   map.setCenter( lonLat, 12 );
   RootPanel.get().add( mapWidget );
 }
origin: geoserver/geofence

this.map = mapWidget.getMap();
org.gwtopenmaps.openlayers.clientMapWidgetgetMap

Javadoc

Gets the map associated with a MapWidget instance. The map is instantiated when this method is called for the first time.

Popular methods of MapWidget

  • setHeight
  • setWidth
  • <init>
    Programmatically creates the element that will contain the map, with the given width and height. The
  • getElement
  • setElement
  • setStylePrimaryName

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now