|
POST
|
Looks like this has been fixed in 3.9. It was fixed in 3.8, so it's fixed in 3.9 too 🙂
... View more
03-20-2014
03:26 PM
|
0
|
0
|
1618
|
|
POST
|
Can you run everything over https? That's how you'll need to run this in production, and you can set up a self-signed cert to do this locally. When you register your serverInfo, make sure you're using https everywhere. I would also use addProxyRule for analysis.arcgis.com instead of using proxyUrl. The directions sample shows how to set up a proxy for specific resources.
... View more
03-14-2014
10:33 AM
|
0
|
0
|
1089
|
|
POST
|
That's good news! Thanks for following up. What do you mean by "Even though the same token parameter is appended by default"?
... View more
03-05-2014
04:24 PM
|
0
|
0
|
2350
|
|
POST
|
We might have a problem with how we're serializing your parameters. Try using JSON.stringify to convert your values for analysisLayer and nearLayer to strings. Something like: var _params = { "analysisLayer": JSON.stringify({ "layerDefinition": { "geometryType": "esriGeometryPoint", "fields": [{ "name": "Id", "type": "esriFieldTypeOID", "alias": "Id" }] }, "featureSet": { "geometryType": "esriGeometryPoint", "spatialReference": { "wkid": 4326 }, "features": [{ "geometry": { "x": -95.00, "y": 28.00 }, "attributes": { "Id": 1 } }] } }), "nearLayer": JSON.stringify({ "layerDefinition": { "geometryType": "esriGeometryPoint", "fields": [{ "name": "Id", "type": "esriFieldTypeOID", "alias": "Id" }] }, "featureSet": { "geometryType": "esriGeometryPoint", "spatialReference": { "wkid": 4326 }, "features": [{ "geometry": { "x": -94.00, "y": 28.00 }, "attributes": { "Id": 1 } }] } }), "maxCount": 10, "measurementType": "StraightLine", //"searchCutoff": 44, //"searchCutoffUnits": "Kilometers" "f": "json" }
... View more
03-05-2014
12:15 PM
|
0
|
0
|
2350
|
|
POST
|
also worth reading: http://blogs.esri.com/esri/arcgis/2012/08/15/making-your-pop-up-pop/
... View more
02-11-2014
12:01 PM
|
0
|
0
|
868
|
|
POST
|
Yeah, I think that's the one. Or you could use use feet and multiply by three.
... View more
02-11-2014
08:23 AM
|
0
|
0
|
867
|
|
POST
|
Check out the server REST API help for info on possible values. Starting from the buffer help, you can get to two pages that list possible units from the description for the "unit" parameter: http://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#/esriSRUnitType_Constants/000w00000042000000/ http://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#//000w00000041000000
... View more
02-11-2014
07:21 AM
|
0
|
0
|
867
|
|
POST
|
Thanks. Can you double-check that you have esriRequest aliased correctly in you require() statement? Nothing from you code jumps out at me as wrong. It looks similar to one of our samples that does something similar: https://developers.arcgis.com/javascript/jssamples/data_requestLayerInfo.html
... View more
02-07-2014
08:03 PM
|
0
|
0
|
575
|
|
POST
|
You're missing parentheses and parameters. Would be good to see more of your code but try something like: identifyRequest(params).then(requestSucceeded, requestFailed);
... View more
02-07-2014
08:21 AM
|
0
|
0
|
575
|
|
POST
|
The REST API docs has a little more info: http://resources.arcgis.com/en/help/arcgis-rest-api/index.html# Unfortunately, the link to ITopologicalOperator.Simplify Method gives a 403. I think it's supposed to link here: http://resources.arcgis.com/en/help/arcobjects-cpp/componenthelp/index.html#//000w000003w0000000 The relevant stuff is in the description section: For Points, Simplify does nothing. A point has no constraints on the values of its coordinates. For Multipoints, Simplify snaps all X, Y, Z, and M coordinates to the grid of the associated spatial reference, then removes identical points. A point is identical to another point when the two have identical X and Y coordinates (after snapping), and when attributes for which it is aware are identical to the attributes for which the other point is aware. For example, if both points are Z aware, the Z coordinate values must be identical. For Polylines, Simplify has two variations: planar and non-planar. By default, polylines that are not M-aware are simplified in a planar manner: all overlapping segments are reduced to a single segment, and segments are split at intersection points. Output paths are created for connected sequences of segments. Input segment orientation is preserved where possible, but segments in the interior of a path will be reoriented if necessary. Polylines that are M-aware use non-planar simplification: 1. Overlaps and self-intersections are preserved, but zero length segments are removed, 2. Segment orientations are adjusted so that the 'to' point of segment I is identical to (considering vertex attributes) the 'from' point of Segment I+1, 3. New paths are created where segments are not connected, 4. Existing paths are merged where only two of them meet at a segment endpoint. For Polygons, Simplify identifies an interior and exterior for the polygon, then modifies the polygon structure to be consistent with that determination. The default methodology for identifying interior and exterior is: 1. Remove all dangling sequences of segments, 2. Identify the largest legal rings, add them to the output version of the polygon, then delete them from the working version, 3. Repeat. If this approach ends up removing too many segments for your application, consider using IPolygon4::SimplifyEx with the XOR parameter set to TRUE. At the end of Simplify, no rings will overlap, no self intersection will occur (except in certain circumstances) and, in general, an arbitrary point can always be classified unambiguously as either outside, on the boundary of, or inside the polygon.
... View more
01-31-2014
01:56 PM
|
0
|
0
|
1662
|
|
POST
|
Having analyzed the issue, I tend to agree. I've done an envelope around the complex geometry (A LOT of point) to simplify the geometry (to reduce the point count) and it's working well. Any other ideas on the issue? How are you retrieving your geometry? Feature layer? Query task? Feature layers, by default use maxAllowableOffset to request generalized geometries (see the "feature generalization" section). If you're using a query task, you can manually set the maxAllowableOffset on your instance of query according to the info in the aforelinked article. The one semi-common place where this breaks down is when you request a very large feature (for instance, Canada's national boundary) but are at a large scale. The geometry that comes back will be huge and cover the entire map and can potentially slow down older browsers (including IE9).
... View more
01-29-2014
01:48 PM
|
0
|
0
|
699
|
|
POST
|
You're first part is right�?? you can use either a map or feature service url to drive a feature layer. In the case of using a map service url, the feature layer will be read-only. I don't understand this part: Would FeatureLayers w/ MapServices backing them fall into the same use case as creating a queryTask and loading the results into a GraphicsLayer? If you're using a feature layer, use its queryFeatures method rather than creating and executing a query task. They'll do the same thing but the feature layer approach takes less code.
... View more
01-29-2014
07:52 AM
|
0
|
0
|
441
|
|
POST
|
Can i add the Point and the Polyline in the same feature layer? if yes how? No, features in a feature layer must all have the same geometry type. if not able to do that.. how can i create a feature layer with which should have geometry type has "PolyLine". in ArcGIS Online? Have you tried map notes?
... View more
01-28-2014
07:44 AM
|
0
|
0
|
500
|
|
POST
|
Check out "The abc???s of AMD" blog post from last fall. Another tool to be aware of is Sitepen's dojo-amd-converter. I haven't actually used it??? it came out about a month after we finished converting all JS API modules to AMD.
... View more
01-24-2014
02:11 PM
|
0
|
0
|
660
|
|
POST
|
Unfortunately, it's not as simple as increasing the number of points used to create a circle. That's a good option when you're seeing the specific segments used to create a circle, like here: http://jsbin.com/AnIQEqO/1/edit But when the issue is something like what Brian has described, using more points won't improve display quality. Instead, consider using a point with a marker symbol to represent your data rather than a circle when at small scales (zoomed way out). The underlying issue is that the API is trying to draw many vertices in a small area which makes the feature look saturated or jaggy. You can see the same thing when you put highly-detailed polygons on a small scale map as shown in one of the screen shots in our feature layer doc on best practices: https://developers.arcgis.com/javascript/jshelp/best_practices_feature_layers.html (look at the western border of Mississippi in the last screen shot).
... View more
01-24-2014
12:43 PM
|
0
|
0
|
739
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|