Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.MapPane


  }

  @Override
  protected final void initialize(final MapWidget map) {
    /* Add our textPanel to the main map pane */
    final MapPane pane = map.getPane(MapPaneType.MARKER_PANE);
    pane.add(textPanel);

    /* Place the textPanel on the pane in the correct spot */
    final Point locationPoint = map.convertLatLngToDivPixel(getLatLng());
    final Point offsetPoint = Point.newInstance(
        locationPoint.getX() - getOffset().getX(),
        locationPoint.getY() - getOffset().getY());
    pane.setWidgetPosition(textPanel, offsetPoint.getX(), offsetPoint.getY());
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.MapPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.