Examples of MarkerOptions


Examples of com.google.gwt.maps.client.overlay.MarkerOptions

    icon.setIconSize(Size.newInstance(w, h));
    icon.setIconAnchor(Point.newInstance(w2, h2));
    icon.setInfoWindowAnchor(Point.newInstance(w2, h2));

    MarkerOptions options = MarkerOptions.newInstance(icon);
    return new Marker(p, options);
  }
View Full Code Here

Examples of com.google.gwt.maps.client.overlay.MarkerOptions

    return clickHandler;
  }

  private Marker getStopMarker(final StopBean stop, final LatLng p, ESize size) {

    MarkerOptions opts = MarkerOptions.newInstance();
    boolean isSelected = false;

    Icon icon = StopIconFactory.getStopIcon(stop, size, isSelected);
    opts.setIcon(icon);
    return new Marker(p, opts);
  }
View Full Code Here

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

    myOptions.setMapTypeId(MapTypeId.ROADMAP);

    GoogleMap map = GoogleMap.create(
        Document.get().getElementById("map_canvas"), myOptions);
    System.out.println("llega a crear el mapa !!");
    MarkerOptions markerOpts = MarkerOptions.create();
    markerOpts.setPosition(myLatLng);
    markerOpts.setTitle(address);
    markerOpts.setMap(map);

    final Marker marc = Marker.create(markerOpts);

  }
View Full Code Here

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

            trozos[1]));

        InfoWindowOptions infoWindowOpts = InfoWindowOptions.create();
        infoWindowOpts.setContent("<h4>" + trozos[2] + "</h4>");
        final InfoWindow infoWindow = InfoWindow.create(infoWindowOpts);
        MarkerOptions markerOpts = MarkerOptions.create();
        markerOpts.setPosition(pto);
        markerOpts.setTitle(trozos[2]);
        markerOpts.setMap(map);
        final Marker marc = Marker.create(markerOpts);
        marc.addClickListener(new ClickHandler() {

          @Override
          public void handle(MouseEvent event) {
View Full Code Here

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

    myOptions.setMapTypeId(MapTypeId.ROADMAP);

    GoogleMap map = GoogleMap.create(
        Document.get().getElementById("map_canvas"), myOptions);
    System.out.println("llega a crear el mapa !!");
    MarkerOptions markerOpts = MarkerOptions.create();
    markerOpts.setPosition(myLatLng);
    markerOpts.setTitle(address);
    markerOpts.setMap(map);

    Marker marc = Marker.create(markerOpts);
    if (porc < 34.0)
      marc.setIcon("http://maps.google.com/mapfiles/ms/icons/blue-dot.png");
    else if (porc < 51)
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.