|
POST
|
I am using this great tool and I noticed that on the graphical search when you click to uncheck the "enable multi-part graphics" the search button dissapears. Also, on the xml configuaration file, if you set the <multipartgraphicsearch>false</multipartgraphicsearch>, the "enable multi-part graphics" still appears in the graphical search interface. Does anyone know or notice this behaviour? I even used the online widget example and the dissappearance of the search button when you deselect the check box, it still occurs. Is that supposed to happen? Thanks.
... View more
04-19-2012
08:40 PM
|
0
|
3
|
1150
|
|
POST
|
I think you are correct Mattias. Using the identifyTask will do the trick as long as you have all your layers in one service. Combine multiple services (WebmapServers, WMS, WFS) in to one identifier task would have been great. Something for 3.1? In addition to setting your buffered line as geometry in the identifyparameters you also need to set the layeroptions to "all". Something like his: //Executes when drawing is completed assuming you draw your line
private function drawEnd(event:DrawEvent):void
{
var geom:Geometry = event.graphic.geometry;
identifyParameters.returnGeometry = true;
identifyParameters.tolerance = 3;
identifyParameters.width = map.width;
identifyParameters.height = map.height;
identifyParameters.layerOption = "all";
identifyParameters.mapExtent = map.extent;
identifyTask.showBusyCursor = true;
//Bufferering drawing
var bufferParameters:BufferParameters = new BufferParameters();
bufferParameters.geometries = [ geom ];
bufferParameters.distances = [ <your buffer distance value> ];
bufferParameters.unit = GeometryService.UNIT_METER;
bufferParameters.outSpatialReference = map.spatialReference;
bufferParameters.unionResults = true;
geometryService.addEventListener(GeometryServiceEvent.BUFFER_COMPLETE, bufferCompleteHandler1);
geometryService.buffer(bufferParameters);
function bufferCompleteHandler1(event:GeometryServiceEvent):void
{
for each (var polygon:Polygon in event.result)
{
geometryService.removeEventListener(GeometryServiceEvent.BUFFER_COMPLETE, bufferCompleteHandler1);
identifyParameters.geometry = polygon;
identifyTaskIntresseletaren.execute(identifyParameters)
break;
}
}
}
<esri:GeometryService id="geometryService" url="<your geometry service> "/>
<esri:IdentifyParameters id="identifyParameters"/>
<esri:IdentifyTask id="identifyTask"
concurrency="last"
showBusyCursor="true"
executeComplete="identifyTask_executeCompleteHandler(event)"/> This will work as long as you don't combine your spatial search with a text search. text search - use findtask spatial search - use identifytask text and spatial search - use querytask but can only search on one layer and field at a time searching in one layer only - use querytask, much faster than findtask and identifytask Karl M Växjö municipality Thank you. I thought that a loop to go through all the layers are identified in an array could do just that. I will work with your code to see if that works. Thank you.
... View more
04-18-2012
08:07 AM
|
0
|
0
|
356
|
|
POST
|
Lefteris, There is no such widget as there is currently no good Flex API path for doing this. The find task will search all layers in a map service but it will only search based on a string and not geometry. ok thanks. that's too bad. I was able to do something like this using javascript in arcims.
... View more
04-16-2012
12:48 PM
|
0
|
0
|
1783
|
|
POST
|
Lefteris, It is pretty straight forward. Choose the graphical search. Choose the layer that you will be searching. Check the buffer graphic checkbox and define the unit of measure and distance. If you are only going to draw a single graphic then uncheck enable multi-part graphics. Draw a graphic using one of the draw tools. If you unchecked the enable multi-part graphics in step 4 then that is it, if you left it checked then you have to click the search button. I have some pretty in depth documentation pdfs in the download that you need to look at. Thank you for the replay Robert. Sorry I didn't make myself clear. I am looking for the tool that will display all features within a buffer from ALL layers that have features within. The tool as it stands now, you have to select a layer at each time and apply the buffer. I'd like to take the chance and thank you so much for all your work.
... View more
04-16-2012
12:21 PM
|
0
|
0
|
1783
|
|
POST
|
Lefteris, The eSearch does exactly that. http://www.arcgis.com/rc/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below: [ATTACH=CONFIG]0[/ATTACH] Thank you. But how do you capture in the buffer, features from other layers and list them?
... View more
04-12-2012
04:14 PM
|
0
|
0
|
1783
|
|
POST
|
I am looking for a modified search widget specify a line and/or line buffer on a specified distance and return the features from other layers found within the selected buffer. Is there anything out there close to this functionality? Thank you.
... View more
04-12-2012
10:28 AM
|
0
|
10
|
2267
|
|
POST
|
Lefteris, I have tried everything and can not duplicate your error. Maybe you should delete the widget from your project and re-download it. Thank you. I deleted the widget and reload it and didn't change anything on the widget xml file. Still same problem...It got to be something with the flexviewer and not the widget.... I will let you know if I figure it out...
... View more
02-21-2012
10:15 AM
|
0
|
0
|
926
|
|
POST
|
Lefteris, I can not seem to duplicate this. Are you using the latest version of the widget? I am using the latest version of flexviewer and widget. Don't know what's wrong.... I attached a video to show the problem and the versions that I am using.... [video=youtube_share;-bP5WgIz9Bw]http://youtu.be/-bP5WgIz9Bw[/video] Thank you.
... View more
02-21-2012
06:20 AM
|
0
|
0
|
926
|
|
POST
|
Sorry for the mispelling... obviously, I meant Splash Widget.... I am using rscheitlin's splash widget but I noticed something odd... when I check on the "Don't Show Again" and then the "Agree" button, nothing happens! If I deselect the "Don't Show Again" and then click on the "Agree" then the splash screen closes. How do I close the splash screen after the customer agrees? I am using version 2.5. <buttons> <button label="Agree" action="close" url="" /> <button label="Disagree" action="redirect" url="http://10.168.28.59/" /> <button label="DEA GIS" action="link" url="http://10.168.28.59/gis/"/> </buttons> <dontshowlabel>Don't show again</dontshowlabel> <disabledontshowoption>false</disabledontshowoption> Thank you.
... View more
02-20-2012
08:19 PM
|
0
|
4
|
2163
|
|
POST
|
Lefteris, That is controlled in the main config.xml in the map component just change the top="40" attribute to your new height of the header controller. Thank you Robert. I should have known better.
... View more
02-16-2012
01:54 PM
|
0
|
0
|
1657
|
|
POST
|
I am trying to increase the height of the top container that cotains the widgets. I know that in headercontrollerwidget.mxml if you increase the height tag in <s:Group id="headerGroup" width="100%" height="85"> will do just that, however it will overlap with the map. How can we have the map displayed after the header if the header height is increased? Thank you.
... View more
02-16-2012
05:34 AM
|
0
|
8
|
2212
|
|
POST
|
I have the bing base layer open in arc for a project. How do I clip just the section I want so the file does not contain the world? Thank you! you can do in arcmap, same the map and create a service... in arcmap just import the basemap and clip it to your section boundaries by right click on the data frame and select clipping...
... View more
02-12-2012
08:43 AM
|
0
|
0
|
2464
|
|
POST
|
Lefteris, So do you see anything displayed in your problems window in Flash Builder? I tested this on my end and it works fine... THANK YOU. Yes, it does work! Sorry. I changed the source code of other mxml earlier trying to increase the width of the icon of only one widget and apparently the map switcher dissapeared as well. I will post the question for the icon width in another post. Thank you again.
... View more
02-08-2012
09:57 AM
|
0
|
0
|
1528
|
|
POST
|
Lefteris, Than the cahnge is a simple as this, In the MapSwitcherWidget.mxml change this function as indicated below: private function initBasemapButtonBar():void
{
basemapList = new ArrayList();
var labels:Array = [];
for each (var basemap:Object in configData.basemaps.reverse())
{
var label:String = basemap.label;
if (labels.indexOf(label) == -1) // avoid duplicates using the labels
{
labels.push(label);
basemapList.addItem(basemap);
}
}
if (basemapList.length <= 1)
{
this.currentState = "noBasemaps";
}
else
{
setBasemapButtonBarIndexToTopmostVisibleBasemap();
}
} Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below: I did just that and recompiled the website and now the map switcher is not displayed at all.
... View more
02-08-2012
09:41 AM
|
0
|
0
|
1528
|
|
POST
|
Lefteris, Do you have the ability to change code in the Viewer? Yes I do. I loaded up the source code of flexviewer in the adobe flash builder. Thanks.
... View more
02-08-2012
09:26 AM
|
0
|
0
|
1528
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 1 | a week ago | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|