POST
|
Sir, ellipse is getting drawn , but i want to select it and resize it... how to resize the ellipse after it got drawn?? is ellipse is a geometry of its a just graphic?? thanks , please help...
... View more
11-10-2019
08:43 PM
|
0
|
0
|
1336
|
POST
|
am trying to draw ellipse using arcgis JS PI 4.11. but it seems there is no way to do it. In api 3.X user can draw ellipse interactivity on the map. we are migrating from 3.X to 4.11 Api and it seems implementation for ellipse is still not done in 4.11. Code simplified for the example: const action = draw.create('ellipse', {});
action.on('vertex-add', (evt) => this.createellipseGraphic(evt));
action.on('cursor-update', (evt) => this.createellipseGraphic(evt));
action.on('draw-complete', (evt) => this.createellipseGraphic(evt)); and function createellipseGraphic(event) { mapView.graphics.removeAll();
const ellipse = new Polygon({ spatialReference: mapView.spatialReference,
center: event.vertices[0],
});
const graphic = new Graphic({
geometry: ellipse,
symbol: // my symbol,
});
mapView.graphics.add(graphic);
} Can anyone help in by provide the guidance, workaround or ellipse code in 4.X api.
... View more
08-08-2019
09:36 PM
|
0
|
3
|
1724
|
POST
|
Hi Everyone, Any help?? It is a urgent requirement . Kindly give a direction....
... View more
08-04-2019
09:20 PM
|
0
|
1
|
599
|
POST
|
I am trying to draw ellipse using arcgis JS PI 4.11. but it seems there is no way to do it. In api 3.X user can draw ellipse interactivity on the map. we are migrating from 3.X to 4.11 Api and it seems implementation for ellipse is still not done in 4.11. Code simplified for the example: const action = draw.create('ellipse', {});
action.on('vertex-add', (evt) => this.createellipseGraphic(evt));
action.on('cursor-update', (evt) => this.createellipseGraphic(evt));
action.on('draw-complete', (evt) => this.createellipseGraphic(evt)); and function createellipseGraphic(event) { mapView.graphics.removeAll();
const ellipse = new Polygon({ spatialReference: mapView.spatialReference,
center: event.vertices[0],
});
const graphic = new Graphic({
geometry: ellipse,
symbol: // my symbol,
});
mapView.graphics.add(graphic);
} Can anyone help in by provide the guidance, workaround or ellipse code in 4.X api.
... View more
07-25-2019
08:25 PM
|
0
|
2
|
868
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|