POST
|
so its an issue with styling (esri js 3x), when I right click on vertex to delete, Delete option shows up but at the bottom left corner. so will just to customize styling for dijitPopup class. if anyone else ever have this issue. add this to your css .dijitPopup { position: absolute; cursor: pointer; }
... View more
12-03-2019
04:45 PM
|
0
|
0
|
20
|
POST
|
Robert Scheitlin, GISP Hi all, when I try to Edit Vertices, I am able to Add and Move vertex but can't Delete. right clicking vertex on map takes the screen to bottom of the page. can't figure put why Add/Move works and Delete doesn't? calling editGeometry() map . getLayer ( "baseGrahic" ). on ( "click" , evt => { this . editGeometry ( evt ); }); UPDATE: also added options but still the same issue editGeometry() editGeometry = evt => { const { editMap , setGeometries } = this . props ; const { editToolBar , esriContent , mapObj } = this . state ; if ( editMap === true ) { let toolbar = null ; if ( editToolBar === null ) { toolbar = new esriContent . Edit ( mapObj ); this . setState ({ editToolBar: toolbar }); } else { toolbar = editToolBar ; } if ( ! toolbar . getCurrentState (). graphic ) { const symbol = new esriContent . SimpleFillSymbol ( esriContent . SimpleFillSymbol . STYLE_SOLID , new esriContent . SimpleLineSymbol ( esriContent . SimpleLineSymbol . STYLE_SOLID , new esriContent . Color ([ 255 , 69 , 0 ]), 2 ), new esriContent . Color ([ 255 , 255 , 0 , 0.25 ]) ); let boundaryGraphic = new esriContent . Graphic ( evt . graphic . geometry , symbol ); const options = { allowDeleteVertices: true }; // Activate Edit Toolbar toolbar . activate ( esriContent . Edit . EDIT_VERTICES , evt . graphic, options ); setGeometries ( evt . graphic . geometry ); } } };
... View more
12-03-2019
02:29 PM
|
0
|
1
|
103
|
POST
|
Thanks Robert, Yes it is editable Feature service and will give that a try and see how I go.
... View more
10-08-2019
04:07 PM
|
0
|
0
|
67
|
POST
|
I am using JSAPI 3.x. I have graphic layer in Feature Layer and I want to select and remove graphic (by rings) one by one. How can I achieve that? As of now when I select graphic, it select the whole graphic and .clear() or .remove() doesn't work. Select and remove graphic based on these rings array Robert Scheitlin, GISP, Robert seen your answers regarding adding/editing graphics. thought you be the best person to help me out here. thanks
... View more
10-08-2019
12:49 PM
|
0
|
2
|
279
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|