|
POST
|
Thank you for your reply. The layer will be hard corded in. So far, I developed the script that a user can right click on any polyline or point and run the buffer tool based on a selected distance. I suppose the next step is to create a loop for all visible layers to run the indentifytask against the buffer polygon and capture the features in the buffer for each layer that lie therein( that I can do). Then, post the findings in the attribute table(that I am trying to figure it out). Ideally, I would also modify the attribute table to offer the option to print in pdf in a custom report layout listing all buffered features in each layer. But I take it a step by step. I will look in the point buffer as you suggested. Thank you. Lefteris, Getting the layer to display in the attributetable is probably the easiest part of your whole desired workflow. Are you planning on hardcoding the layers that will get buffered or just have them defined in a XML configuration file? There is not a widget out there right now that does your exact workflow as you probably know. The Point Buffer Widget might be a good starting point for your development if you are looking at allowing the user to dynamically draw on the map and have that buffered (of course it is only designed for points right now but its a good start). I guess a more detailed workflow would be needed before I can give more direction.
... View more
02-17-2014
06:08 PM
|
0
|
0
|
1404
|
|
POST
|
The Attribute widget displays the the fields of ALL layers that are visible and active. I'm researching a way to use a modified version of this widget, so that when I buffer a polyline or a point, it will capture all the features from all active layers within that buffer and display them on the attirbute table. So, each tab would show the layer with the captured features. I am aware of the eSearch widget; however you have to select only one layer to query. I???d like to buffer for multiple layers. Suggestions? Thank you! The same question will be posted on the Flexviewer forum.
... View more
02-15-2014
12:11 PM
|
0
|
1
|
969
|
|
POST
|
The Attribute widget displays the the fields of ALL layers that are visible and active. I'm researching a way to use a modified version of this widget, so that when I buffer a polyline or a point, it will capture all the features from all active layers within that buffer and display them on the attirbute table. So, each tab would show the layer with the captured features. I am aware of the eSearch widget; however you have to select only one layer to query. I???d like to buffer for multiple layers. Suggestions? Thank you! The same question will be posted on the Flex API forum.
... View more
02-15-2014
12:09 PM
|
0
|
4
|
4028
|
|
POST
|
Hello Paul. Would you mid sharing the source code in CF? Thanks. we use coldfusion + iText for this server side. we build the attribute tables dynamically, measure their sizes once the tables are filled w/data, then merge them w/the PDF map document produced by the AGS print task, sticking what fits in the map's white space & dumping what doesn't onto supplemental pages. iText gives you an insane amount of control, coldfusion lets us glue this altogether more easily. i suppose anything server side that can talk to java or c# an be used w/iText (it has java & c# versions). we've tried purePDF (partial AS3 port of iText) & alivePDf client side but we found these too slow & lacking some functionality.
... View more
01-07-2014
06:22 PM
|
0
|
0
|
3255
|
|
POST
|
Lefteris, The points geometry might be in WebMercator but the attributes of Lat and Long are in Geographic. So did you test the code I provided? If it worked than you should mark this thread as answered. Don't forget to click the Mark as answer check on this post and to click the top arrow (promote). Follow these steps as shown in the below graphic: Are you sarcastic? I have already checked other answers and I don't need the idiot pictures to show me how to do it. Certainly, responding to questions with capital letters is not welcome either. Thanks for your help but in the future ignore my questions. Let other users who have more patience to answer them. FYI, I found the answer myself before you posted the last answer, after I checked the Flex APi and found the webmercatorpoint.
... View more
10-16-2013
03:36 PM
|
0
|
0
|
2438
|
|
POST
|
Lefteris, OK, the reason I mentioned that I thought you have your lat and Long reversed when you are creating your map points for the poly line is this. A MapPoint takes an X and a Y (in that order). What you have is: pA.push(new MapPoint(obj.lat,obj.long, new SpatialReference(102100))); Which equates to MapPoint(Y, X, new SpatialReference(102100))); Also your attached table shows me that the Lat and Long coordinates are NOT webmercator they are geographic and DO need to be projected. So here is the code that I would be using: private function doQuery():void
{
queryTask.execute(query, new AsyncResponder(onResult, onFault));
function onResult(featureSet:FeatureSet, token:Object = null):void
{
if (featureSet.features.length == 1)
{
myMap.zoomTo(featureSet.features[0].geometry);
}
else if (featureSet.features.length > 1)
{
var graphicsExtent:Extent = GraphicUtil.getGraphicsExtent(featureSet.features);
if (graphicsExtent)
{
myMap.extent = graphicsExtent;
}
var m:int;
var pA:Array = [];
var wmp:WebMercatorMapPoint;
for(m=0; m<featureSet.features.length; m++){
wmp = new WebMercatorMapPoint(featureSet.attributes ["Long"], featureSet.attributes ["Lat"]);
pA.push(wmp);
}
var pLine:Polyline = new Polyline(null, new SpatialReference(102100));
pLine.addPath(pA);
var gra:Graphic=new Graphic(pLine, new SimpleLineSymbol("solid",0xFF3333,1,3), null);
myGraphicsLayer2.add(gra);
}
}
} ok, thanks. The reason I thought that the point are in webmercator is because the source of the point layer indicated that they were in the web mercator coord system. I guess I was wrong.
... View more
10-16-2013
07:09 AM
|
0
|
0
|
2438
|
|
POST
|
Lefteris, Looks like you have you lat and Long reversed when you create your map point. Points are entered in order of lat, long I created a datagrid to show the lat long that it captures and they are correct (see attached). So I don't think its a case of reverse lat long. But I do know that it is something simple. [ATTACH=CONFIG]28355[/ATTACH]
... View more
10-15-2013
08:36 PM
|
0
|
0
|
2438
|
|
POST
|
Lefteris, Based on the field name of Lat and Long, are the coordinates in the point feature Geographic? If so then you need to re-project them to 102100 before you add them to the polyline. Just declaring them as WKID 102100 does not re-project them. No, they are not. The points are in the same coordinate system (Web Mercator) in the point layer as well. I included below the rest of the code in case you spot something. At this point all I get are all the selected points based on the query but the polyline is not drawn. I tried the option to use another graphiclayer as well (not shown below, I removed it) so I can draw the polyline on it, but it didn't work. Thank you for your input. <fx:Declarations> <!-- Layer with US States --> <esri:QueryTask id="queryTask" showBusyCursor="true" url="http://10.112.89.131/dea_arcgis/rest/services/postmile_2012/d2_test/MapServer/0" useAMF="true"/> <esri:Query id="query" outSpatialReference="{myMap.spatialReference}" returnGeometry="true" outFields="[Route,Odometer,Lat,Long]" where = "Route = 3 AND Odometer < 118.955 AND Odometer > 47.717"> </esri:Query> </fx:Declarations> <esri:Map id="myMap"> <esri:extent> <esri:Extent xmin="-13909920" ymin="2928237" xmax="-7354680" ymax="6362400"> <esri:SpatialReference wkid="102100"/> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> <esri:GraphicsLayer id="myGraphicsLayer" graphicProvider="{queryTask.executeLastResult.features}"/> </esri:Map>
... View more
10-15-2013
03:16 PM
|
0
|
0
|
2438
|
|
POST
|
I run a query from a point layer. The intention is to capture the lat long fields of the selected points and draw a polyline connecting the points. The polyline does not appear. Suggestions? Thank you. private function doQuery():void { queryTask.execute(query, new AsyncResponder(onResult, onFault)); function onResult(featureSet:FeatureSet, token:Object = null):void { if (featureSet.features.length == 1) { myMap.zoomTo(featureSet.features[0].geometry); } else if (featureSet.features.length > 1) { var graphicsExtent:Extent = GraphicUtil.getGraphicsExtent(featureSet.features); if (graphicsExtent) { myMap.extent = graphicsExtent; } var m:int; var pA:Array; pA=[]; for(m=0; m<featureSet.features.length; m++){ var obj:Object = new Object(); obj.lat= featureSet.attributes ["Lat"]; obj.long=featureSet.attributes ["Long"]; pA.push(new MapPoint(obj.lat,obj.long, new SpatialReference(102100))); } var pLine:Polyline=new Polyline(null,new SpatialReference(102100)); pLine.addPath(pA); var gra:Graphic=new Graphic(pLine); gra.symbol = new SimpleLineSymbol("solid",0xFF3333,1,3); myGraphicsLayer2.add(gra); } }
... View more
10-13-2013
12:27 PM
|
0
|
9
|
4181
|
|
POST
|
This question is for flexviewer. Does anyone has any idea how to change the symbology (line weight, color) over a segment of a single-part line feature using the beginning and ending set of coords? Ultimately, the url parameters would provide the beginning and ending sets of coords and line id. Based on the parameters, the new symboloy will displayed over the requested line segment/ Thanks.
... View more
09-18-2013
11:01 AM
|
0
|
0
|
784
|
|
POST
|
This question is for flexviewer. Does anyone has any idea how to overlay a polyline graphic over a segment of a single-part line feature using the beginning and ending set of coords? Ultimately, the url parameters would provide the beginning and ending sets of coords and line id. Based on the parameters, the polyline graphic will displayed over the requested line segment/ Thanks.
... View more
09-18-2013
10:42 AM
|
0
|
0
|
750
|
|
POST
|
We do not have plans to add a "layer list" or "table of contents" widget to manage map layers and sublayers. We've resisted adding this to the API because we don't want to encourage building generic, kitchen sink style viewers. I realize that we (Esri) do not have a consistent story on this as we still provide generic viewers for other platforms/technologies. We're open to discussing it further, but I personally agree with anti-viewer, anti-portal sentiments that some have expressed online for the past couple of years (most recent example). Totally disagree with this assessment. For GIS professionals who come from different areas of expertise but they use the same map, TOC would assist to provide an organizational structure. The layers for the specific are will turned on and the rest off. Checkboxes will provide the option to turn other layers on as needed.
... View more
09-10-2013
11:08 AM
|
0
|
0
|
3080
|
|
POST
|
The basic web template from ArcGIS.com has a setting in the index.html to turn on/off the layerlist ( displaylayerlist: true,) By default is on. However the map shows only the legend. In the layout.js , if the displaylayerlist: true then it should: //Create a menu with a list of operational layers. Each menu item contains a check box //that allows users to toggle layer visibility. according to the comments posted in the file. However it does not. Is it a bug? Thank you.
... View more
09-05-2013
03:47 PM
|
0
|
0
|
657
|
|
POST
|
A much nicer approach, Thanks Jose I got stuck in a rut a sticking to an old style of a previous project and building on to it. I had come across TOC a few times and was stubborn to implement it. Thanks for the nudge. It would still be nice to know if it is possible to set the checkboxes and initial visibility of layers in the method I posted, for future referenece Cheers ~ Rory I use 10.1 and 3.6 api and this TOC gives me a blank map. Let me know if you have a similar setting and it works for you. Thank you.
... View more
09-05-2013
03:41 PM
|
0
|
0
|
968
|
|
POST
|
Guys, I will be releasing a 3.4 version (hopefully in a week or two) of the widget that has full application builder integration (this means I can eliminate user xml configuration errors). All I can say is you have an issue in your configuration of the widget as I don't have any issue getting it to work. Thank you Robert, but I don't think it is a xml issue. I already posted the xml for the widget and for the main config (under a similar forum post) and there was nothing wrong with them. I will look into other possible reasons.
... View more
07-03-2013
08:10 AM
|
0
|
0
|
3201
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM | |
| 1 | 01-05-2026 01:35 PM | |
| 1 | 12-30-2025 10:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|