Examples of MarkerOptions


Examples of br.com.digilabs.jqplot.elements.MarkerOptions

        SeriesDefaults seriesDefaults = new SeriesDefaults();
        seriesDefaults.rendererOptions(new RendererOptions().smooth(true));
        lineChart.setSeriesDefaults(seriesDefaults);

        lineChart.addSerie(new Serie().lineWidth(2).markerOptions(
                new MarkerOptions().style("diamond")));
        lineChart.addSerie(new Serie().showLine(false).markerOptions(
                new MarkerOptions().size(7f).style("x")));
        lineChart.addSerie(new Serie().markerOptions(new MarkerOptions().style("circle")));
        lineChart.addSerie(new Serie().lineWidth(5).markerOptions(
                new MarkerOptions().style("filledSquare").size(10f)));

        add(new JqPlotChart("test", lineChart));

    }
View Full Code Here

Examples of br.com.digilabs.jqplot.elements.MarkerOptions

        SeriesDefaults seriesDefaults = new SeriesDefaults();
        seriesDefaults.rendererOptions(new RendererOptions().smooth(true));
        lineChart.setSeriesDefaults(seriesDefaults);

        lineChart.addSerie(new Serie().lineWidth(2).markerOptions(
                new MarkerOptions().style("diamond")));
        lineChart.addSerie(new Serie().showLine(false).markerOptions(
                new MarkerOptions().size(7f).style("x")));
        lineChart.addSerie(new Serie().markerOptions(new MarkerOptions().style("circle")));
        lineChart.addSerie(new Serie().lineWidth(5).markerOptions(
                new MarkerOptions().style("filledSquare").size(10f)));

        return lineChart;
    }
View Full Code Here

Examples of com.buzzcoders.yasw.widgets.map.core.MarkerOptions

   *
   * @param arguments the arguments containing the information
   * @return {@link MarkerOptions} instance
   */
  public static MarkerOptions getMarkerOptions(Object[] arguments) {
    MarkerOptions options = new MarkerOptions();
    // LatLng
    options.setPosition(new LatLng(
        (Double) arguments[OPTIONS_LAT_INDEX],
        (Double) arguments[OPTIONS_LNG_INDEX]));
    // Draggable
    options.setDraggable((Boolean)arguments[OPTIONS_DRAGGABLE_INDEX]);
    // Animation
    options.setAnimation(getMarkerAnimation((Double)arguments[OPTIONS_ANIMATION_INDEX]));
    // Visible
    options.setVisible((Boolean)arguments[OPTIONS_VISIBLE_INDEX]);
    // Clickable
    options.setClickable((Boolean)arguments[OPTIONS_CLICKABLE_INDEX]);
    return options;
  }
View Full Code Here

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

    LatLngBounds bounds = map.getBounds();
    LatLng southWest = bounds.getSouthWest();
    LatLng northEast = bounds.getNorthEast();
    double lngSpan = northEast.getLongitude() - southWest.getLongitude();
    double latSpan = northEast.getLatitude() - southWest.getLatitude();
    MarkerOptions options = MarkerOptions.newInstance();
    options.setIcon(icon);
    for (int i = 0; i < 10; i++) {
      LatLng point = LatLng.newInstance(southWest.getLatitude() + latSpan
          * Math.random(), southWest.getLongitude() + lngSpan * Math.random());

      map.addOverlay(new Marker(point, options));
View Full Code Here

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

    // Center the new map on Midtown Atlanta
    map = new MapWidget(ATLANTA, 13);
    map.setSize("500px", "300px");
    map.setUIToDefault();

    MarkerOptions opt = MarkerOptions.newInstance();
    opt.setDraggable(true);
    marker = new Marker(ATLANTA, opt);

    Panel hp1 = createActionButtons();

    HorizontalPanel hp2 = createListenerListBox();
View Full Code Here

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

  private Marker createMarker(LatLng point, int index) {
    // Create a lettered icon for this point using our icon class
    final char letter = (char) ('A' + index);
    Icon icon = Icon.newInstance(baseIcon);
    icon.setImageURL("http://www.google.com/mapfiles/marker" + letter + ".png");
    MarkerOptions options = MarkerOptions.newInstance();
    options.setIcon(icon);
    final Marker marker = new Marker(point, options);

    marker.addMarkerClickHandler(new MarkerClickHandler() {

      public void onClick(MarkerClickEvent event) {
View Full Code Here

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

  @Override
  public void onShow() {
    map.clearOverlays();

    MarkerOptions options = MarkerOptions.newInstance();
    options.setDraggable(true);
    final Marker marker = new Marker(map.getCenter(), options);
    final InfoWindow info = map.getInfoWindow();
   
    marker.addMarkerDragEndHandler(new MarkerDragEndHandler() {
      public void onDragEnd(MarkerDragEndEvent event) {
View Full Code Here

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

      log(1, "Icon URL '" + jsIcon.stringValue() + "' at anchor point ("
          + iconAnchorX + "," + iconAnchorY + ")");
    }

    MarkerOptions mopts;
    if (icon != null) {
      mopts = MarkerOptions.newInstance(icon);
    } else {
      mopts = MarkerOptions.newInstance();
    }

    mopts.setTitle(jsTitle.stringValue());
    mopts.setDraggable(jsDraggable.booleanValue());

    final double lat = jsLat.doubleValue();
    final double lng = jsLng.doubleValue();

    if (lat < -90 || lat > 90) {
View Full Code Here

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

    ImageResource resource = getMarkerResource(index);
    Icon icon = Icon.newInstance(resource.getURL());
    icon.setIconSize(Size.newInstance(24, 31));
    icon.setIconAnchor(Point.newInstance(12, 31));
    MarkerOptions opts = MarkerOptions.newInstance();
    opts.setClickable(true);
    opts.setIcon(icon);
    LatLng point = LatLng.newInstance(entry.getLat(), entry.getLon());
    return new Marker(point, opts);
  }
View Full Code Here

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

      DataResource resource = resources.getImageRouteStart();
      Icon icon = Icon.newInstance();
      icon.setImageURL(resource.getUrl());
      icon.setIconSize(Size.newInstance(20, 34));
      icon.setIconAnchor(Point.newInstance(10, 34));
      MarkerOptions opts = MarkerOptions.newInstance(icon);

      _marker = new Marker(location, opts);
      _mapOverlayManager.addOverlay(_marker);
    }
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.