|
POST
|
Scale cannot be done similar to move by just using transform. You would have to consider reference point for the scaling. In the scale event arguments, the info argument contains around property. Roughly, the calculation should be something like below X = around.x + ((point.x - around.x) * scalex) Y = around.y + ((point.y - around.y) * scaley) Sorry I have not verified it.
... View more
08-05-2016
10:48 AM
|
1
|
5
|
1828
|
|
POST
|
Are you looking for something like LOD in constraints MapView | API Reference | ArcGIS API for JavaScript 4.0
... View more
08-04-2016
10:54 AM
|
1
|
2
|
1126
|
|
POST
|
Sorry, I am not aware, how to do it. If you are strong in dojox.gfx, you could probably do it, by getting the dojoShape and manipulating it and updating the shape back to geometry, like earlier. But I cannot confirm it. If the users does not need it, I would suggest you to disable the scaling. It would be easier if you were using EditToolbar instead of Editor Widget. The way to do it here. aspect.before(myEditor.editToolbar, "activate", function(options, selected){
if((options & Edit.SCALE) === Edit.SCALE)
options = options ^ Edit.SCALE;
return [options, selected];
});
... View more
08-04-2016
10:20 AM
|
0
|
1
|
3220
|
|
POST
|
Glad I could help. Please mark the question as answered.
... View more
08-04-2016
07:30 AM
|
0
|
3
|
3220
|
|
POST
|
Glad I could help, Please mark the question as answered.
... View more
08-04-2016
07:29 AM
|
0
|
0
|
2234
|
|
POST
|
Cloning Graphic objects may not be a good idea. especially if it is already added to the map. GraphicsLayer to which it has been added will be one of the properties of the graphic object. The best thing to do is to convert it to json and create a new graphic from that json. var jsonGraphic = graphic.toJson(); var newGraphic = new Graphic(jsonGraphic);
... View more
08-04-2016
06:46 AM
|
1
|
2
|
2234
|
|
POST
|
I am experiencing a strange behaviour, I am using GeometryEngine to find if a point is on the line. I am using intersect for that purpose. If it intersect i.e., point is on the Polyline, Then I get the subcurve, segments from start to the point. With the coordinates mentioned below, the GeometryEngine returns that the point is on the line, whereas, when I try to identify, where the point lies (using calculations), I find that the point is not on the line and I get the full line back. Polyline:
{
'paths':[[[558282.4414999997,446456.8780000005],
[558289.2401999999,445685.57799999974],
[558286.9896,445626.9844000004],
[558289.9265000001,445561.07840000093],
[558293.3940000003,444489.8770000003]]],
'spatialReference':{'wkid':3071,'latestWkid':3071}
}
Point:
{
'x':558287.5473275795,
'y':445877.7059446493,
'spatialReference':{'wkid':3071}
} The simplified code is here. Can anyone let me know if there is a tolerance limit in the GeometryEngine which results in the wrong response. Or how I can Identify if a point is on a polyline?
... View more
08-03-2016
10:58 AM
|
0
|
0
|
1442
|
|
POST
|
Moving the Point type is fairly easy, its more complicated if it is Polyline or Polygon. Below is how you could move a point. var graphicPoint = graphic.geometry;
var screenPoint = map.toScreen(graphicPoint);
screenPoint = screenPoint.offset(dx, dy);
var movedPoint = map.toMap(screenPoint);
graphic.setGeometry(movedPoint); That should move you measurement graphic.
... View more
08-03-2016
09:06 AM
|
2
|
2
|
3220
|
|
POST
|
Rather than updating the latitude and longitude, I would suggest you could simply clone the geometry and try updating the Geometry of the graphic. var graphic = Layer.graphics.getItemAt(0); var newPoint = this.point.clone(); //updated the newPoint graphic.geometry = newPoint;
... View more
07-29-2016
01:56 PM
|
0
|
0
|
1984
|
|
POST
|
If you are talking about, setGeometry and setSymbol methods that were there in 3.x (Graphic), you dont need them any more. In 4.x you can update the properties directly. I would suggest you to go through this Working with properties | ArcGIS API for JavaScript 4.0
... View more
07-29-2016
09:42 AM
|
1
|
1
|
1984
|
|
POST
|
It is usually not advisable to show point data at high scales. I would suggest that you hide the layer using min and max zoom level settings. Another thing you could do is to show clustered point as shown in this example. Point clustering | ArcGIS API for JavaScript 3.17 Hope this was helpful.
... View more
07-29-2016
07:07 AM
|
0
|
1
|
769
|
|
POST
|
I have gone through the script as well the node, the "esri/dijit/editing/Editor", does not have any method by name "getCurrentState".
... View more
07-28-2016
08:15 AM
|
0
|
1
|
1346
|
|
POST
|
You must be confused with toolbars/edit vs dijit/editor. Editor does not contain any method by name "getCurrentState". The Editor contains an instance of edit toolbar may be you saw that.
... View more
07-28-2016
06:13 AM
|
0
|
0
|
1346
|
|
POST
|
I have tested it again, and confirm the behaviour as described by you in both the browsers.
... View more
07-07-2016
11:32 AM
|
0
|
0
|
1885
|
|
POST
|
Looks like a issue with IE only. I am not seeing the behavior in FF.
... View more
06-27-2016
09:26 AM
|
0
|
2
|
1885
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-24-2017 07:15 AM | |
| 1 | 09-13-2016 06:27 AM | |
| 1 | 05-21-2015 08:06 AM | |
| 1 | 12-16-2015 05:43 AM | |
| 1 | 07-20-2015 09:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|