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

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


    panel.add(message2);
    initWidget(panel);
  }

  private void createPolyline() {
    PolyStyleOptions style = PolyStyleOptions.newInstance(color, weight,
        opacity);

    final Polyline poly = new Polyline(new LatLng[0]);
    lastPolyline = poly;
    map.addOverlay(poly);
View Full Code Here


      }
    });
  }

  private void createPolygon() {
    PolyStyleOptions style = PolyStyleOptions.newInstance(color, weight,
        opacity);

    final Polygon poly = new Polygon(new LatLng[0], color, weight, opacity,
        color, fillFlag ? .7 : 0.0);
    lastPolygon = poly;
View Full Code Here

  private void createRegionPolygon() {
   
    String tempId = UUID.uuid(10);
    tempId = "TEMP-" + tempId; // to be replaced on first save in TagBO
    GWT.log("Temporary polygon ID:" + tempId);
    PolyStyleOptions strokeStyle = PolyStyleOptions.newInstance(polygonColor, weight, opacity);
    PolyStyleOptions fillStyle = PolyStyleOptions.newInstance(polygonColor, weight, opacity);

      final RegionPolygon poly = new RegionPolygon(new LatLng[0]);
      poly.setRegionDetailsId(tempId);
     
      map.addOverlay(poly);
View Full Code Here

      final RegionPolygon polygon = new RegionPolygon(points, polygonColor, weight, opacity, polygonColor, opacity);
      polygon.setRegionDetailsId(zoneDetailsId);
     
      bindPolygonHandlers(polygon, false);
     
        PolyStyleOptions style = PolyStyleOptions.newInstance(polygonColor, weight, opacity);
        polygon.setStrokeStyle(style);
       
        //polygons.add(polygon);
       
        return polygon;
View Full Code Here

  private void createPolyline() {
   
    String tempId = UUID.uuid(10);
    tempId = "TEMP-" + tempId; // to be replaced on first save in TagBO
   
      PolyStyleOptions style = PolyStyleOptions.newInstance(polylineColor, weight, opacity);

      final TagPolyline poly = new TagPolyline(new LatLng[0]);
      poly.setRoadDetailsId(tempId);
     
      map.addOverlay(poly); // SFM FIRST OVERLAY TO GET ON THE MAP....
View Full Code Here

    private void createPolygon() {
   
    String tempId = UUID.uuid(10);
    tempId = "TEMP-" + tempId; // to be replaced on first save in TagBO
     
    PolyStyleOptions strokeStyle = PolyStyleOptions.newInstance(polygonColor, weight, opacity);
    PolyStyleOptions fillStyle = PolyStyleOptions.newInstance(polygonColor, weight, opacity);

      final TagPolygon poly = new TagPolygon(new LatLng[0]);
      poly.setZoneDetailsId(tempId);
     
      map.addOverlay(poly);
View Full Code Here

      final TagPolygon polygon = new TagPolygon(points, polygonColor, weight, opacity, polygonColor, opacity);
      polygon.setZoneDetailsId(zoneDetailsId);
     
      bindPolygonHandlers(polygon, false);
     
        PolyStyleOptions style = PolyStyleOptions.newInstance(polygonColor, weight, opacity);
        polygon.setStrokeStyle(style);
       
        polygons.add(polygon);
       
        return polygon;
View Full Code Here

      final TagPolyline polyline = new TagPolyline(points, polylineColor, weight, opacity);
      polyline.setRoadDetailsId(roadDetailsId);
     
      bindPolylineHandlers(polyline, false);
     
        PolyStyleOptions style = PolyStyleOptions.newInstance(polylineColor, weight, opacity);
        polyline.setStrokeStyle(style);
       
        //polylines.add(polyline);
       
        return polyline;
View Full Code Here

          List<CoordinatePoint> points = PolylineEncoder.decode(path);
          EncodedPolylineBean bean = PolylineEncoder.createEncodings(points);
         
          Polyline line = getPathAsPolyline(bean);
          PolyStyleOptions style = PolyStyleOptions.newInstance("#0000FF", 4,
              0.5);
          line.setStrokeStyle(style);
          resultingOverlays.add(line);

          addBoundsToBounds(line.getBounds(), bounds);
        }

        StopBean stop = leg.getFromStop();

        if (stop != null) {
          String routeName = leg.getRouteShortName();

          TripPlannerResources resources = TripPlannerResources.INSTANCE;
          SpanPanel w = new SpanPanel();
          w.addStyleName(_css.routeTinyInfoWindow());
          Image image = new Image(resources.getBus14x14().getUrl());
          image.addStyleName(_css.routeModeIcon());
          w.add(image);
          SpanWidget name = new SpanWidget(routeName);
          name.setStyleName(_css.routeName());
          w.add(name);

          LatLng point = LatLng.newInstance(stop.getLat(), stop.getLon());
          TinyInfoWindowMarker marker = new TinyInfoWindowMarker(point, w);
          resultingOverlays.add(marker);

          bounds.extend(point);
        }
      } else if (mode.equals("walk")) {
        List<StreetLegBean> streetLegs = segment.getStreetLegs();
        List<CoordinatePoint> allPoints = new ArrayList<CoordinatePoint>();
        for (StreetLegBean streetLeg : streetLegs) {
          String path = streetLeg.getPath();
          List<CoordinatePoint> points = PolylineEncoder.decode(path);
          allPoints.addAll(points);
        }
        EncodedPolylineBean polyline = PolylineEncoder.createEncodings(allPoints);
        Polyline line = getPathAsPolyline(polyline);
        PolyStyleOptions style = PolyStyleOptions.newInstance("#000000", 4, 0.8);
        line.setStrokeStyle(style);
        resultingOverlays.add(line);

        addBoundsToBounds(line.getBounds(), bounds);
      }
View Full Code Here

TOP

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

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.