Package org.geomajas.gwt.client.spatial.geometry

Examples of org.geomajas.gwt.client.spatial.geometry.Point


    tempPoint = new GfxGeometry("PointDrawController.updatePoint");
    tempPoint.setStyle(drawStyle);
    tempPoint.setSymbolInfo(symbolStyle);

    Coordinate coords = getTransformer().worldToPan(geometry.getCoordinate());
    Point point = (Point) geometry.getGeometryFactory().createPoint(coords);
    tempPoint.setGeometry(point);
    mapWidget.render(tempPoint, RenderGroup.VECTOR, RenderStatus.ALL);
  }
View Full Code Here


    final GfxGeometry worldGeometry2 = new GfxGeometry("MultiPointInWorldSpace");
    SymbolInfo si = new SymbolInfo();
    CircleInfo ci = new CircleInfo();
    ci.setR(8.0f);
    si.setCircle(ci);
    Point pt1 = gf.createPoint(new Coordinate(6000000, -5000000));
    Point pt2 = gf.createPoint(new Coordinate(8000000, -5000000));
    Point pt3 = gf.createPoint(new Coordinate(7000000, -7000000));
    worldGeometry2.setStyle(new ShapeStyle("#0000FF", 0.3f, "#0000FF", 1.0f, 2));
    worldGeometry2.setGeometry(gf.createMultiPoint(new Point[] {pt1, pt2, pt3}));
    worldGeometry2.setSymbolInfo(si);

    button2.addClickHandler(new ClickHandler() {
View Full Code Here

   * On mouse up, execute the search by location, and display a
   * {@link org.geomajas.gwt.client.widget.FeatureAttributeWindow} if a result is found.
   */
  public void onMouseUp(MouseUpEvent event) {
    Coordinate worldPosition = getWorldPosition(event);
    Point point = mapWidget.getMapModel().getGeometryFactory().createPoint(worldPosition);

    SearchByLocationRequest request = new SearchByLocationRequest();
    request.setLocation(GeometryConverter.toDto(point));
    request.setCrs(mapWidget.getMapModel().getCrs());
    request.setQueryType(SearchByLocationRequest.QUERY_INTERSECTS);
View Full Code Here

      request.setLayerIds(new String[] { layer.getServerLayerId() });
      request.setFilter(layer.getServerLayerId(), ((VectorLayer) layer).getFilter());
    } else {
      request.setLayerIds(getVisibleServerLayerIds(mapModel));
    }
    Point point = mapModel.getGeometryFactory().createPoint(worldPosition);
    request.setLocation(GeometryConverter.toDto(point));
    request.setCrs(mapWidget.getMapModel().getCrs());
    request.setQueryType(SearchByLocationRequest.QUERY_INTERSECTS);
    request.setSearchType(SearchByLocationRequest.SEARCH_ALL_LAYERS);
    request.setBuffer(calculateBufferFromPixelTolerance());
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.spatial.geometry.Point

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.