Package com.google.gwt.maps.client

Examples of com.google.gwt.maps.client.MapWidget$MapPanel


        LatLng p1 = LatLng.newInstance(45, 45);
        LatLng p2 = LatLng.newInstance(50, 50);
        Marker m1 = new Marker(p1, opts);
        Marker m2 = new Marker(p2, opts);

        MapWidget map = new MapWidget(p1, 1);
        map.setSize("300px", "300px");
        map.addOverlay(m1);
        map.addOverlay(m2);
        RootPanel.get().add(map);
      }
    });
  }
View Full Code Here


  private Button hideButton;
  private GroundOverlay groundOverlay;

  public GroundOverlayDemo() {
    VerticalPanel vp = new VerticalPanel();
    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    vp.add(map);
    vp.setSpacing(10);
    map.setSize("500px", "500px");
    map.setUIToDefault();
View Full Code Here

  }

  private MapWidget map;

  public SimpleDemo() {
    map = new MapWidget();
    map.setSize("500px", "300px");
    initWidget(map);
  }
View Full Code Here

  public MapTypeDemo() {

    VerticalPanel vertPanel = new VerticalPanel();
    vertPanel.setStyleName("hm-panel");

    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    map.setSize("500px", "500px");

    // Add in all the map types we know about.
    for (MapType mt : MapType.getDefaultMapTypes()) {
      map.addMapType(mt);
View Full Code Here

   * Test the "cancelline" event using a trigger.
   */
  public void testPolygonCancelLineTrigger() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        final Polygon polyline = setupPolygon(m);

        m.addOverlay(polyline);
        polyline.setDrawingEnabled();
        polyline.addPolygonCancelLineHandler(new PolygonCancelLineHandler() {

          public void onCancel(PolygonCancelLineEvent event) {
            finishTest();
View Full Code Here

   * Test the "endline" event using a trigger.
   */
  public void testPolygonEndLineTrigger() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        final Polygon polyline = setupPolygon(m);
        final LatLng testLatLng = LatLng.newInstance(31, 32);

        m.addOverlay(polyline);
        polyline.setDrawingEnabled();
        polyline.addPolygonEndLineHandler(new PolygonEndLineHandler() {

          public void onEnd(PolygonEndLineEvent event) {
            assertEquals("event.getLatLng()", testLatLng, event.getLatLng());
View Full Code Here

   * Test the "lineupdated" event using a trigger.
   */
  public void testPolygonLineUpdatedTrigger() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        final Polygon polyline = setupPolygon(m);

        m.addOverlay(polyline);
        polyline.setEditingEnabled(true);
        polyline.addPolygonLineUpdatedHandler(new PolygonLineUpdatedHandler() {

          public void onUpdate(PolygonLineUpdatedEvent event) {
            finishTest();
View Full Code Here

   * Test the "mouseout" event using a trigger.
   */
  public void testPolygonMouseOut() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        final Polygon polyline = setupPolygon(m);
        m.addOverlay(polyline);
        polyline.addPolygonMouseOutHandler(new PolygonMouseOutHandler() {

          public void onMouseOut(PolygonMouseOutEvent event) {
            finishTest();
          }
View Full Code Here

   * Test the "mouseover" event using a trigger.
   */
  public void testPolygonMouseOver() {
    loadApi(new Runnable() {
      public void run() {
        final MapWidget m = new MapWidget();
        final Polygon polyline = setupPolygon(m);
        m.addOverlay(polyline);
        polyline.addPolygonMouseOverHandler(new PolygonMouseOverHandler() {

          public void onMouseOver(PolygonMouseOverEvent event) {
            finishTest();
          }
View Full Code Here

  private MapWidget map;

  private Icon baseIcon;

  public IconClassDemo() {
    map = new MapWidget(LatLng.newInstance(37.4419, -122.1419), 13);
    map.setSize("500px", "300px");
    initWidget(map);
    map.setUIToDefault();

    // Create a base icon for all of our markers that specifies the
View Full Code Here

TOP

Related Classes of com.google.gwt.maps.client.MapWidget$MapPanel

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.