Examples of MapPane


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

Examples of org.geotools.swing.MapPane

        Rectangle2D screenRect = new Rectangle2D.Double(
                getX() - (widthPixels / 2),
                getY() - (widthPixels / 2),
                widthPixels, widthPixels);
       
        MapPane pane = getSource();
        Rectangle2D worldRect = pane.getScreenToWorldTransform().createTransformedShape(
                screenRect).getBounds2D();
       
        return new ReferencedEnvelope(worldRect,
                pane.getMapContent().getCoordinateReferenceSystem());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.