|
POST
|
Hi All- Anyone notice that the Select Tool that is packaged with the Silverlight viewer has poor performance when selecting a lot of point? When I use this tool to select points for a feature layer over a large area I get long delays in the selection and sometimes just freezes up the browser. However if I use the table and select the same number of records that the selection area would have selected, the selection is done very fast. Is the source code for this tool available? I'd like to see how this tool works as maybe there is a better way to do this.
... View more
01-30-2014
10:41 AM
|
0
|
0
|
1158
|
|
POST
|
After some searching I found that ArcGIS for Flex API has some additional functionality for working with ArcGISHeatMapLayers. I am looking to do a weighted heat map like the example in the link below but in Silverlight. Anyone know a way to do this or will this functionality make it's was to the Silverlight API in the near future? https://developers.arcgis.com/en/flex/sample-code/heatmap-weighted.htm
... View more
12-17-2013
11:13 AM
|
0
|
0
|
874
|
|
POST
|
Thank you, Brian. There seems to be more issues. Will hold out for a while before upgrading. I finished upgrading my applications and all my add-ins to 3.2 yesterday. Went very smooth after the initial issue mentioned above. To be honest i probably would have held off on this update but I needed the fix for the pop ups not honoring the layer definitions. That was one thing i could never find time to fix myself. I may find use of the new showWindow positioning and the INotifyInitialized. Now to find time to play.
... View more
12-10-2013
03:25 AM
|
0
|
0
|
654
|
|
POST
|
I ran into a small issue upgrading to 3.2 and figured I would share in case anyone else runs into the same issue. When you get to the point to click the Up arrow that upgrades your individual Viewer Applications, I ran into an error message which stated there was a HttpWebRequest_WebException_RemoteServer - Arguments:NotFound. After looking at the request in fiddler I found the message "The file 'C:\inetpub\wwwroot\Apps\PolicySearchTest\Config\Application.xml.bak' already exists." So I looked in the Config folders of ALL my maps and found I had .bak files that may have been from the upgrade to 3.1 a while back. After renaming or deleting these files I was able to upgrade all my viewer applications. Hope this helps someone.
... View more
12-09-2013
05:33 AM
|
0
|
2
|
1262
|
|
POST
|
The 3.2 setups are now available for download. You can get them from the Viewer's Resource Center. This includes a fix for the on-click pop-ups not respecting layer definitions (as well as time extent and parent layer visibility). Thanks Rich. I look forward to testing out the changes.
... View more
12-09-2013
03:32 AM
|
0
|
0
|
403
|
|
POST
|
Definately possible. I do something similar to what you mention. I am taking URL parameters when the viewer initializes and querying using the parameters to populate the map contents. Below is the code I use to get parameters from the URL.
public void getECFParameters()
{
Dictionary<string, string> urlparams = HtmlPage.Document.QueryString as Dictionary<string, string>;
urlparams.TryGetValue("CAT", out ecfCAT);
urlparams.TryGetValue("DOL", out ecfDate);
urlparams.TryGetValue("COV", out ecfCov);
urlparams.TryGetValue("POLNO", out ecfPOLNO);
if (ecfCAT == "null")
ecfCAT = null;
if (ecfCov == "null")
ecfCov = null;
}
... View more
12-03-2013
03:39 AM
|
0
|
0
|
859
|
|
POST
|
I think I figured this out. I needed to set up an event handler to set my Diaolog to null when hidewindow was fired. Here is my code in case anyone finds it useful or wants to show me there is a better way to handle. [Export(typeof(ICommand))] [DisplayName("Hail Analysis Tool")] public class AnalysisTool : ICommand { private MyAnalysisDialog AnalysisDialog = null; // Event Declaration public event EventHandler hideDialog; #region ICommand members public void Execute(object parameter) { // Create a new Dialog if one has not already been created //AnalysisDialog = AnalysisDialog ?? new MyAnalysisDialog(); hideDialog += new EventHandler(HideHandler); if (AnalysisDialog != null) { MapApplication.Current.HideWindow(AnalysisDialog); } else { AnalysisDialog = new MyAnalysisDialog(); MapApplication.Current.ShowWindow("Hail Analysis", AnalysisDialog, false, null,HideHandler); } } public void HideHandler(object sender, EventArgs e) { AnalysisDialog = null; hideDialog -= new EventHandler(HideHandler); } public bool CanExecute(object parameter) { // Return true so that the command can always be executed return true; } public event EventHandler CanExecuteChanged; #endregion }
... View more
10-30-2013
07:01 AM
|
0
|
0
|
852
|
|
POST
|
I have a bunch of tools that utilize ShowWindow to display the UI of the tool. Once the window is displayed, the button used to execute the tool is still enabled but does nothing. What I am hoping to do is allow the button to close the window that is already open. In order to do that I need to check to see if the window is open and if so run HideWindow indtead of ShowWindow. I looked through the Extensibility namespace and couldn't find much that will help me. Any ideas?
... View more
10-30-2013
06:10 AM
|
0
|
2
|
1539
|
|
POST
|
Yes that is possible using a behavior. I have done something similar but with a regular tool that a user needs to click to run. You can have your link set with a parameter. http://yourserver/map/?SITE=site1 The code below will pull the parameter out to a string. Then you can pass this string into your query as needed. Hope this helps.
string querySite;
public void getParameters()
{
Dictionary<string, string> urlparams = HtmlPage.Document.QueryString as Dictionary<string, string>;
urlparams.TryGetValue("SITE", out querySite);
}
... View more
10-28-2013
12:05 PM
|
0
|
0
|
906
|
|
POST
|
Well i was able to get the execute method to run from the behavior but it appears all the elements of the tool are not initializing. I have a viewmodel that is supposed to query some data sources and populate combo boxes but that is not working.
... View more
09-26-2013
07:28 AM
|
0
|
0
|
1047
|
|
POST
|
So I think I may be getting closer. I reference my add-in tools dll in my new behavior project. I can call te execute method but it is looking for an object parameter. I am not sure what to put here. I tried using null but When the behavior runs it says the parameter is missing.
... View more
09-26-2013
06:22 AM
|
0
|
0
|
1047
|
|
POST
|
I am pretty sure you will need to create a custom layout to accomplish this. I did something close to what you are talking about but the transparency slider i created sits outside Map Content Control. Here is the transparency Slider I used in my custom layout based on the Accordian Layout. Edit* - I forgot to mention that i have this collapsed by defualt and use a custom add-in to toggle visibility. <!--Transparency Slider--> <Grid x:Name="TransparencyBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="190" Height="80" Margin="5" Visibility="Collapsed" Grid.Column="1"> <Border x:Name="TransparencyContainer" Style="{StaticResource GlassyBorder}" Padding="3,3,3,3" Opacity="1"> <!--<Border.Effect> <DropShadowEffect /> </Border.Effect>--> <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition/> </Grid.RowDefinitions> <Border BorderThickness="0" Margin="0" VerticalAlignment="Stretch" Background="{StaticResource AccentTextColorBrush}" Opacity="0.2" CornerRadius="3,3,0,0"> </Border> <TextBlock TextWrapping="Wrap" Foreground="{StaticResource AccentTextColorBrush}" Text="Layer Transparency" FontSize="12" FontWeight="Bold" Margin="5,2,2,2"/> <Button Margin="0,0,0,0" Opacity="1" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Top" Width="23" Visibility="{Binding Visibility, ElementName=TransparencyBox}" Style="{StaticResource CloseButtonStyle}" Background="{StaticResource AccentColorBrush}" BorderBrush="{StaticResource AccentColorBrush}" Foreground="{StaticResource AccentTextColorBrush}" > <i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <ei:ChangePropertyAction TargetObject="{Binding ElementName=TransparencyBox}" PropertyName="Visibility"> <ei:ChangePropertyAction.Value> <Visibility>Collapsed</Visibility> </ei:ChangePropertyAction.Value> </ei:ChangePropertyAction> </i:EventTrigger> </i:Interaction.Triggers> </Button> <Slider Grid.Row="1" Height="23" Width="150" Name="slider1" HorizontalAlignment="Center" Minimum="0" Maximum="1" Value="{Binding Path=SelectedLayer.Opacity, Mode=TwoWay, Source={StaticResource MapApplication}}" IsDirectionReversed="False" /> </Grid> </Border> </Grid>
... View more
09-24-2013
05:37 AM
|
0
|
0
|
1125
|
|
POST
|
Hi Dan: The upcoming release will include a new Query Tool, support for URL parameters (e.g. to start a Viewer app at a certain extent or location), and enhanced support for secured ArcGIS for Portal content and federated services. On the localization front, a whole bunch of new languages are in the pipeline. And last but not least, the release will also include a bunch of bug fixes. Any chance that identifying on an ArcGISDynamicMapServiceLayer with layer definition is one of the bugs fixed or being worked on? Identify currently doesn't honor the layer definition. Thanks..
... View more
09-24-2013
04:56 AM
|
0
|
0
|
2210
|
|
POST
|
So I have a custum add-in that I build to query a service and return results to the map. While useful in one application by clicking a button to execute, I am looking to utilize the same tool in another app but this time I need it to automatically run the tool when the map opens. I am not sure what is the best way to go about this? Can I use a behavior to launch the tool? The reason I want to use the tool is I also want the user to be able to close after the first launch and have the ability to re-open the tool and change the query to re-run at anytime. I appreciate any help.
... View more
09-05-2013
05:22 AM
|
0
|
4
|
1292
|
|
POST
|
So I stopped trying to use the workspace and I am just setting a variable with the path. This now shows the table exists. WildFire_Table_Target = r'D:\agsResources\DataStoreSDEs\HOCCSQLAH01_AHREPORT(TEST Server).sde\ArcSDE.dbo.WILDFIREPERIM' However when trying to add the table to fieldmapping I get an error. fieldmappings.addTable(WildFire_Table_Target) Error executing tool.: FieldMappings: Error in adding table to field mappings Failed to execute (ImportWildfirePerim). Failed to execute (ImportWildfirePerim). Doesn't make sense to me as it has no issues with the filed mapping in ArcMap.
... View more
06-07-2013
07:51 AM
|
0
|
0
|
2052
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-21-2026 06:15 AM | |
| 4 | 03-12-2025 11:01 AM | |
| 3 | 01-08-2025 09:26 AM | |
| 1 | 01-08-2025 07:19 AM | |
| 1 | 12-06-2024 04:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|