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

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

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

origin: org.n52.sensorweb/sensorwebclient-ui

public void resizeTo(int width, int height) {
  mapWidget.setHeight(height + "px");
  mapWidget.setWidth(width + "px");
  this.width = width;
  this.height = height;
}
origin: org.gwtopenmaps.openlayers/openlayers_gwt

/**
 * Programmatically creates the element that will contain the map,
 * with the given width and height.
 *
 * The map itself is instantiated upon calling {@link #getMap()}.
 *
 * @param width - a String with the width of the element that will contain the map in CSS units.
 * @param height - a String with the height of the element that will contain the map in CSS units.
 * @param options - null if no options should be set upon map instantiation
 *      or a MapOptions object that is passed to the map upon instantiation.
 *
 * @since GWT-OL 0.2
 */
public MapWidget(String width, String height, MapOptions options) {
  Element e = DOM.createDiv();
  this.options = options;
  setElement(e);
  setWidth(width);
  setHeight(height);
}
origin: geosdi/GWT-OpenLayers

/**
 * Programmatically creates the element that will contain the map, with the
 * given width and height.
 *
 * The map itself is instantiated upon calling {@link #getMap()}.
 *
 * @param width - a String with the width of the element that will contain
 * the map in CSS units.
 * @param height - a String with the height of the element that will contain
 * the map in CSS units.
 * @param options - null if no options should be set upon map instantiation
 * or a MapOptions object that is passed to the map upon instantiation.
 *
 * @since GWT-OL 0.2
 */
public MapWidget(String width, String height, MapOptions options) {
  Element e = DOM.createDiv();
  this.options = options;
  setElement(e);
  setWidth(width);
  setHeight(height);
}
org.gwtopenmaps.openlayers.clientMapWidgetsetWidth

Popular methods of MapWidget

  • getMap
    Gets the map associated with a MapWidget instance. The map is instantiated when this method is calle
  • setHeight
  • <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
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JLabel (javax.swing)
  • Join (org.hibernate.mapping)
  • 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