POST
|
Indeed. Thanks so much for your gracious help, Robert! All the best, DeWayne
... View more
05-23-2018
08:38 AM
|
0
|
0
|
578
|
POST
|
Hello, Robert. I found my problem in my code. I had a couple of typos and I also discovered that I was referencing an incorrect field name. However, in answer to your question...... I create a buffer list of attributes if a point falls within my polygon: if (polygon.contains(pnt)) { inBuffer2.push({ ObjectID: layer.attributes.FID, Name: layer.attributes.Name, lon: my_pnt.x, lat: my_pnt.y }); } then I generate my graphics: createGraphics: function (response, callback) { callback(arrayUtils.map(response, function(feature, i) { return new Graphic( new Point({ x: feature.lon, y: feature.lat }), null, { FID: feature.ObjectID, name: feature.Name, lat: feature.lat, lon: feature.lon },null ); })) }, Regards, DeWayne
... View more
05-23-2018
08:08 AM
|
0
|
2
|
578
|
POST
|
I did not even realize that. Ugh! Yes, it is one of my default widgets (along with the other widgets such as zoom slider, search, etc.) when I'm building my web app. Sorry for the confusion. Yes!!! I clicked "Filter by Extent" and I get four rows (presumably corresponding to the four points that intersect a polygon) in the table. However, only the objectID values are shown in the table and the rest of the attributes are missing. The "Name", "Lat" and "Lon" attributes are missing. In addition, when I enable pop-ups on my resulting sub-set of points, the same attributes are missing their values.....they are listed in the pop-up window but the values are indeed missing. I'm wondering if I may have the types specified incorrectly....just a guess. But I seem to be farther along thanks to your insight. I will take a dive into the code that is populating my array of intersecting points that I use to build graphics and the feature collection. I am seeing my lat and lon values (at least) as "undefined" after I create the feature layer. Many thanks for your guidance and patience. I may come back with another question but for now I'm going to see what I can do. All the best, DeWayne
... View more
05-22-2018
12:18 PM
|
0
|
4
|
578
|
POST
|
Sorry, Robert. I'm not using the AT widget.... only a heavily modified AddShapefile widget.
... View more
05-22-2018
11:59 AM
|
0
|
6
|
1942
|
POST
|
I didn't have any errors before, but to make sure I ran the process once again on the latest polygon feature layer and I do not have any errors. All appears to be running as expected. Both the uploaded points and the intersected points are displaying great in my map application but the resulting table is empty.
... View more
05-22-2018
11:38 AM
|
0
|
1
|
1942
|
POST
|
That is actually a good question. Opening in the attribute table widget just might be the ticket, although I have not examined the AT widget that closely yet. For the moment, I would at least like to see the attribute data from my feature layer result in my web app that I'm creating, and then, yes, perhaps display the resulting featureLayer in the AT widget which I think would give me control of the resulting table regarding color coded cells, font, sorting, etc. In the graphic below, the blue balloons on the map represent the uploaded points and the red circles indicate those points that are within a polygon of interest. So no problem visualizing the original point data that I upload and the intersecting points on a map. The points_test table contains the point features (blue balloons) that I uploaded to my application. All looks good there. However, the graphicsLayer5 table (circled red) is empty. Best.... DeWayne
... View more
05-22-2018
10:39 AM
|
0
|
3
|
1942
|
POST
|
Hello, Robert. Yes, I am using widget that comprises snippets from other widgets and code samples as well as my own code derived from the AG AG JS docs. I am using AG API for JS 3.24 for all of my development. As it turns out, I started with the AddShapefile widget which you kindly provided - https://community.esri.com/thread/161017?commentID=530113#comment-530113. I then incorporated code from creating feature layers from client side graphics (Create a FeatureLayer with client side graphics | ArcGIS API for JavaScript 4.7). The workflow comprises querying a secured feature layer (polygon feature type) from my own AG Server and then looping through each point from my uploaded shapefile to see if they are contained in a polygon. I then create graphics followed by a feature collection which is then used to generate a feature layer. Hope this makes sense. Cheers, DeWayne
... View more
05-22-2018
09:54 AM
|
0
|
5
|
1942
|
POST
|
In my webapp builder application (I'm using WebApp Developer edition 2.7), I am querying a set of points that intersect a set of polygons. I can display and toggle the intersecting points in my web app map using the layer list widget. However, the attributes of the point sub-set are not showing in the attribute table. Thanks in advance for any insight and advice. Cheers, DeWayne
... View more
05-21-2018
02:04 PM
|
0
|
14
|
3498
|
Online Status |
Offline
|
Date Last Visited |
12-08-2020
02:12 PM
|