POST
|
Amanda, That's strange functionality. Are you sure it's just not taking a while for the data to load into the grid? Sometimes it takes a while for large feature sets to show up into the datagrid. I would try waiting a little while before hitting the button again. Otherwise, that's weird. A second button click should be the same command as the first... Thomas McCracken GIS Analyst Georgia Power Company
... View more
05-24-2012
11:58 AM
|
0
|
0
|
189
|
POST
|
I believe you need to use a where statement for your query. So instead of text="some value" in your query tag, use a where = "(the attribute) = (your button value)" For example, I have a query with a where statement that looks like this: where="FEEDERID LIKE UPPER ('%(fText.text)%')". This queries my FEEDERID attribute for my entered text input using all capitals and wildcards. Hope this helps. Make sure to look at the query section in the API reference also. Thomas McCracken GIS Analyst Georgia Power Company
... View more
05-24-2012
11:53 AM
|
0
|
0
|
85
|
POST
|
Try using a <esri:PictureMarkerSymbol> with your image as the source. Good luck. Please check this as the answer if it helps, thanks. Thomas McCracken GIS Analyst Georgia Power Company
... View more
05-16-2012
10:37 AM
|
0
|
0
|
240
|
POST
|
Amanda, I use components in Flash Builder and transition from one mxml to another using States. For instance, in my application I have a portal where a user can choose which map they would like to view. Once clicked, the state changes to the specific map state where the component with the map comes in. Hope this helps! Thomas McCracken GIS Analyst Georgia Power Company
... View more
05-16-2012
10:29 AM
|
0
|
0
|
157
|
POST
|
Hey Flex Gurus, I'm trying to calculate the total length of my polylines after a query and adding graphics: I found this code and I'm trying to get it to work but not having any luck: private function executeCompleteHandler(event:QueryEvent):void { for each (var myGraphic:Graphic in event.featureSet.features) { myGraphic.addEventListener(MouseEvent.CLICK, unselectGraphic); myGraphic.addEventListener(MouseEvent.ROLL_OVER, toggleMapClick); myGraphic.addEventListener(MouseEvent.ROLL_OUT, toggleMapClick); myGraphicsLayer.add(myGraphic); var lengths:Array = GeometryUtil.geodesicLengths([ new Polyline(myGraphic.geometry.extent.toPolygon().rings)], Units.MILES); var i:int = 0; length+=lengths; i++; } Any thoughts on how I could calculate the total length of the lines with the geodesicLengths method. I'm not sure what the Polyline(mygGraphic...) method is even calculating here. I found it on a post here in the forums but it's giving me way too big of a number. Any advice would be much appreciated. Thanks Flex Jedi Masters, Thomas
... View more
05-14-2012
11:44 AM
|
0
|
0
|
761
|
POST
|
Alright, after changing absolutely nothing in my code it started working. Talked to IT folks and they said they had re-started the server and done some other stuff so that must have done it. I guess this hasn't been happening for anyone else but if it does just get your IT to play with the server a little and do their voodoo IT magic on it.
... View more
05-11-2012
11:22 AM
|
0
|
0
|
187
|
POST
|
No, limiting graphics is not the problem. I need more graphics, one for each record returned from the query. That is why I upped the max number returned to 50,000. I already have a map service of the data; that is what I'm querying from. The user needs to query the service to highlight a the particular features he is looking for. Unfortunately, when they perform the query not all of the matching records are getting graphics added to them. I can't figure out why this happens but that is the behavior. Thanks for the suggestion though.
... View more
05-09-2012
09:10 AM
|
0
|
0
|
187
|
POST
|
Afternoon Flex Comrades, Got a little dilemma here everyone. I've created a query task that returns a very large number of results (1,000 - 2,000 records or so); I'm querying electrical distribution line circuits. I cranked the max number of records in the service config file to 50,000 (yes, fifty thousand). Well, when I add the resulting graphic for the query there are still several pieces of the geometry missing. Does anyone know of a max. number of graphics allowed or perhaps some sort of time limit a query will run before stopping? Has anyone else encountered this and know of a solution? I'm working with ArcGIS Server 9.3, also. Please advise. Thomas McCracken GIS Analyst Georgia Power Company
... View more
05-08-2012
11:47 AM
|
0
|
3
|
422
|
POST
|
Ah, it's all internal. I see now. Thanks Robert! I believe I can get it working now!
... View more
04-12-2012
04:20 AM
|
0
|
0
|
427
|
POST
|
Yes, I see what you mean with the other widgets map clicks....well, so I need to call that setMapAction method in my mapClickHandler function then and create the map graphic in another function which that method calls and from there I can pass that event.graphic.geometry on to my query.geometry and then queryTask methods? The way the API works and the way the Viewer widgets work is very different. I'm looking in the Search and Draw widgets and I think I'm missing how the map mouse click initiates these functions with a map event listener... Sorry for the confusion, but I am very new to this. If it's too much trouble you don't have to keep responding. Thanks, Thomas
... View more
04-11-2012
12:05 PM
|
0
|
0
|
427
|
POST
|
Robert, I was having trouble implementing this solution so I then added a map Event Listener for a map click and then passed that event to the handler and everything ran fine. Do you see a downside to this approach? It was a very easy solution once I figured out where to add it. Thanks, Thomas
... View more
04-11-2012
10:31 AM
|
0
|
0
|
427
|
POST
|
Hello everyone in Flex Viewer world, I'm using the Flex API to create my own query widget. Part of the functionality I want is to click a polygon and perform the query like so in the Flex API: http://help.arcgis.com/en/webapi/flex/samples/index.html#/Select_and_zoom/01nq0000003s000000/ Ok, this functionality is enabled partly by this markup: <esri:Map id="myMap" mapClick="mapClickHandler(event)"> Since I'm unable to simply add a markup to the Flex Viewer map for mapClick, how can I pass the map click event to the mapClickHandler function to work the same way? I know the Viewer does this with the pop-ups but I'm unable to see how. If anyone has any ideas or perhaps a couple snippets of code as an example I would appreciate it, thanks! Thomas McCracken GIS Analyst Georgia Power
... View more
04-10-2012
12:45 PM
|
0
|
8
|
2218
|
POST
|
Tracy, I'm using ESRI's North America 10 address locator just like in their sample geocode here on the resource center. I tried using some of the others with no luck. If it is in fact giving me the best possible match then their matching algorithm is horrible as I get a Jefferson Ave. everytime I enter Jefferson Street. Thanks ibespalov for the code!
... View more
04-04-2012
04:52 AM
|
0
|
0
|
223
|
POST
|
Afternoon everyone in ESRI Flex API land, I'm having a little trouble getting a better match to come up in my geocoding. I'm trying to add a for loop to the code like below: for(i=0; addressCandidate.score>80, i=10; i++) { if (candidates.length > 0) { var addressCandidate:AddressCandidate = candidates[0]; var myGraphic:Graphic = new Graphic(); .... } I've tried several variations of this loop with the candidates array and putting it within the if statement but no luck. Basically I just want to add a loop to go through all the potential address matches until a score of 80 is reached on the match and then continue with the rest of the Geocoding function found in the API Samples for geocoding. Anyone attempted to do this and have any luck? Care to share some code with me??????? =D Thanks, Thomas McCracken GIS Analyst Georgia Power Company
... View more
04-03-2012
12:27 PM
|
0
|
3
|
781
|
POST
|
After setting Secure='false' for both domain and headers my services are now working in the viewer perfectly.
... View more
02-06-2012
11:43 AM
|
0
|
0
|
1481
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|