|
POST
|
Ok, that last question was super simple -- Add info window close listener like this: map.infoWindow.addEventListener(Event.CLOSE, infoWindowCloseHandler); Then clear the graphics layer in that function. Should have looked for a few minutes before asking!
... View more
08-29-2011
12:36 PM
|
0
|
0
|
647
|
|
POST
|
Came up with a fix for the above problem. It may not be the best solution but it is working for us for now. What I did was set any of the processes that hit the dynamic layer in the map to ignore it until after someone clicks one of the layers on in the TOC. To do this I just dispatched an event from inside the onCheckBoxClick function in TocItemRenderer.as and then listen for it in each of my other widgets that look at the layer controlled by the TOC. As soon as someone clicks on a check box, the tools will now pay attention to the layer.
... View more
08-29-2011
11:59 AM
|
0
|
0
|
1573
|
|
POST
|
Ok, got this one figured out on my own. Instead of adding the renderer to the graphic, I created a popUpRenderer and added it to the map, then told it to display at the same time the graphic is drawn. identGfxLayer.add(lastIdentifyResultGraphic);
var infoData:Object =
{
title: title,
content: content,
link: link,
point: point,
geometry: resultGraphic.geometry
};
var popUpInfo:PopUpInfo = new PopUpInfo;
popUpInfo = configurePopUpInfo(infoData);
var myInfoPopup:PopUpRenderer = new PopUpRenderer;
myInfoPopup.popUpInfo = popUpInfo;
map.infoWindow.content = myInfoPopup;
map.infoWindow.show(infoData.point); Now I'm trying to figure out how to clear the graphics layer when the popup is closed. If anyone has any hints on that please let me know, otherwise hopefully I'll figure that out too soon and post it up!
... View more
08-29-2011
08:55 AM
|
0
|
0
|
647
|
|
POST
|
I've been using this widget for a while now and it works great! Can't say thank you enough... Using it has brought up another issue with group layers that I was wondering if you know how to fix Robert (or anyone else). This is the issue: Because this widget works like the ArcMap TOC, and doesn't automatically check all of it's child layers when checking a group layer, we have now started using map services where the group layers are turned off when the map loads but the child layers of that group are all on. This means that when the map loads since the group layer is not checked, nothing displays on the map even though the child layers are checked. This is exactly how we want it to work. The difficulty comes in when we start using other processes on the map. Let's take identify for example. If I use the identify tool, and tell it to look at layers that are currently on, it shouldn't get the child layers (since their parent is off), but it does. The catch is, if I interactively toggle one of the group layers on, and then back off in the TOC, and then run the identify, it will not hit the those layers even though they are in the exact same state they were just before I toggled them on and off. What I'm wondering is if there is a way to initialize the layers, performing the same thing that happens when manually turning something on and back off in the TOC without any user interaction. It is very confusing for users to be identifying things they don't have turned on, but the alternative of turning everything off by default causes lots of expanding and checking to have to happen when you use grouped layers.
... View more
08-25-2011
01:11 PM
|
0
|
0
|
1573
|
|
POST
|
Hi, I am upgrading my app which is built on top of flexviewer code from the old 1.3 viewer to the new 2.4 viewer code. One of the functions that I had built into the old version was an identify tool that had a popup with the results. It used code like this:
identGfxLayer.add(lastIdentifyResultGraphic);
var infoData:Object =
{
title: title,
content: content,
link: link,
point: point,
geometry: resultGraphic.geometry
};
infoPopup.infoData = infoData; Now I am trying to replace that with the new way which seems like it should be this:
var infoData:Object =
{
title: title,
content: content,
link: link,
point: point,
geometry: resultGraphic.geometry
};
var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
infoWindowRenderer.properties = { popUpInfo: configurePopUpInfo(infoData)};
lastIdentifyResultGraphic.infoWindowRenderer = infoWindowRenderer;
identGfxLayer.add(lastIdentifyResultGraphic); This is working just fine, except that when the user clicks on the map, the feature they chose is highlighted on the graphics layer but no popup is shown until they click AGAIN on the graphic. In the old popup, it would add the graphic and display the popup at the same time. Is there some kind of extra command I need to send to get the popup to display automatically without the user having to click twice?
... View more
08-25-2011
12:50 PM
|
0
|
6
|
1526
|
|
POST
|
Hi, thanks Robert for creating a widget that finally does TOC the right way! Also thanks for todays release that fixed the leak bug. Sorry to be the bearer of new bug reports, but after today's update, I'm getting one where my layer names are disappearing as I interact with the legend. I attached a shot of the problem. The longer I interact (expand, scroll, turn on/off, etc) the more of them seem to go, but I haven't managed to narrow down exactly when they disappear, it doesn't seem to be the same every time. If you need my config/services or anything else to help track it down, let me know! Thanks, Jackson
... View more
08-01-2011
01:04 PM
|
0
|
0
|
1784
|
|
POST
|
Two questions: 1. Does anyone have a link to a working sample where I could take a look at this legend widget? 2. Plaizilla, you are still the only person who has written a widget like this. Any possibility of releasing the code? Having this as a widget doesn't work for my app, since my table of contents is not running as a widget, and I am also not using the flex viewer so I can't even load it at all.
... View more
05-24-2011
09:45 AM
|
0
|
0
|
812
|
|
POST
|
I contacted support on this, and Sumedha S. found my issue. I still don't quite understand exactly what was wrong but I was building my multipoints and polylines incorrectly in my code. I changed how I build them based on the suggestion from support and now it works fine.
... View more
05-17-2011
09:24 AM
|
0
|
0
|
550
|
|
POST
|
I have a widget that, as part of a reporting process, uses the Geometry Service to get a buffer of some user selected features. It works fine if the user selects polygons, but if they select points or lines, the geometry service returns null instead of the buffer. The odd thing is that if I use fiddler to capture the call to the geometry service, and then submit that exact call myself through the rest endpoint, I get the buffer returned. Here are some screenshots that show what I'm talking about: Attachments: #1 Submitting with flex (captured via fiddler showing the parameters that were send and the empty response below). #2 The exact same settings filled into the form on the geometry service rest endpoint. #3 The response from the rest endpoint, as you can see it is giving me back geometries instead of nothing. As far as I can tell, the two are exactly the same so I don't understand why I'd get different responses. Any ideas? Thanks!
... View more
05-12-2011
06:25 PM
|
0
|
1
|
704
|
|
POST
|
Thanks for the reply. That's actually exactly what I'm doing, and it's working great except for the scrollbar issue. I don't understand why in Flex, expanding a tree by a function call works different than the built in expansion that's called when the user clicks the expand node on the tree. I haven't been able to find what the difference is but there must be one because it behaves differently. Unfortunately, I can't find any other way to expand the tree that will make the scrollbar activate, and I also haven't found any way to activate the scrollbar by a refresh. The only thing that works is for a user to click the expand node on the tree, but without knowing that, the users just can't see the rest of the tree that is below the bottom of the box.
... View more
05-09-2011
08:38 AM
|
0
|
0
|
759
|
|
POST
|
Question on this solution. I grabbed this solution a while back to expand the first node of my tree and it works great. It has however introduced a bug. When I expand the tree using the funciton call, and the tree expands past the end of the box it lives in, the vertical scrollbar doesn't activate. If I expand the tree manually the scrollbar works fine. For some reason the box that the tree is in doesn't realize that the tree got too big if I expand it using the toc.expandItem(item,true,true,true,null); call. Any idea on how I can tell the tree to refresh its scrollbar so that the users can scroll down to see all of the items in the tree? I have tried all of these in various places including using callLater: toc.invalidateDisplayList();
toc.validateNow();
toc.validateDisplayList();
toc.invalidateSize(); I have searched extensively for a solution to this issue and found many people who have the issue but no solutions that work.
... View more
05-04-2011
01:58 PM
|
0
|
0
|
759
|
|
POST
|
That worked, thanks! I just spent about 45 minutes searching for that syntax before finally posting!
... View more
01-11-2011
12:03 PM
|
0
|
0
|
727
|
|
POST
|
That's where I got my field name, here's a screen-shot of that area in my service.
... View more
01-11-2011
11:49 AM
|
0
|
0
|
727
|
|
POST
|
Hi, I'm trying to write some code to use an address locator and I want to use the single line address field. I have set up my address object with just the single line: var myAddress:Object =
{
SingleLineInput: searchBox.text
}; However I can not give the address field the correct name. According to my locator the field should be called: "Single Line Input" as seen in this JSON code in the locator's rest endpoint: "singleLineAddressField" : {
"name" : "Single Line Input",
"type" : "esriFieldTypeString",
"alias" : "Full Address",
"required" : false} The problem is that Flex will not allow me to pass a field name of "Single Line Input" because it has spaces in it. All of the other field names work fine since they have no spaces. How can I use this field name in my flex code? Thanks to anyone who can help, Jackson
... View more
01-11-2011
11:35 AM
|
0
|
4
|
1195
|
|
POST
|
Anybody figure this one out? We are getting this too and I haven't been able to find an answer. My details: -Setting up a new ArcSDE 10.0 database on ArcSDE Server 64-bit (win 2008 server 64-bit) -SQL Server 2008 64 bit -Fails at repository setup with error: Connection to [databasename] failed(0)
Error creating ArcSDE direct connection (-493). I checked and the database has been created on the db server, and has the correct permissions, etc.
... View more
11-09-2010
01:23 PM
|
0
|
0
|
2868
|
| Title | Kudos | Posted |
|---|---|---|
| 5 | 05-17-2024 01:25 PM | |
| 2 | 07-25-2019 03:22 PM | |
| 1 | 09-15-2023 03:06 PM | |
| 1 | 09-05-2017 10:36 AM | |
| 2 | 08-08-2018 01:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-10-2025
07:47 AM
|