Package com.google.gwt.maps.client.overlay

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


      _resource = resource;
    }

    public Icon getIcon(boolean isSelected) {

      Icon icon = Icon.newInstance();

      icon.setImageURL(_resource.getURL());

      int w = _resource.getWidth();
      int h = _resource.getHeight();
      int w2 = w / 2;
      int h2 = h / 2;

      icon.setIconSize(Size.newInstance(w, h));
      icon.setIconAnchor(Point.newInstance(w2, h2));
      icon.setInfoWindowAnchor(Point.newInstance(w2, h2));
      if (isSelected) {
        // icon.setShadowURL(r.getImageSelectedStop().getUrl());
        // icon.setShadowSize(Size.newInstance(22, 21));
      }
View Full Code Here


  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

TOP

Related Classes of com.google.gwt.maps.client.overlay.Icon

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.