|
POST
|
Hello: I'm using the Legend Template to build in the concept to activate a layer. I've setup a Radio button for all of the layers that appear in the Legend Template (you'll see 2 radio buttons in the code below). When the user clicks on the radio button of that layer, I want to Activate that layer. The layer may either be a layer within a Dynamic Map Service layer, an actual Dynamic Map Service layer, or a Tiled map Service layer. I'm having 2 problems with this concept: 1. When I first open the Legend Template, no radio buttons are checked. I want to control which radio button is checked (I want one of my Dynamic Map Service layers radio buttons to be checked. I've created some Loaded events for both of my radio buttons but I can't set the current radio button to IsChecked when I get to the one I'd like to check. 2. I've setup an event to handle the Click Event. It's working nicely for my Dynamic Map Service and Tiled Map Service layers. But it's not working at all for my Dynamic Map Service Layer sublayers. I think I havent setup my Tag Properly. Code Below (sorry, the formatting got messed up when I pulled it in): <esri:Legend Name="MyTOC" Map="{Binding ElementName=Map}" LayerItemsMode="Tree" ShowOnlyVisibleLayers="False" Refreshed="TOCLegend_Refreshed"> <esri:Legend.MapLayerTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" > </CheckBox> <RadioButton GroupName="grpLayer" Name="rdMSActiveLayer" IsEnabled="True" Content="{Binding Label}" Tag="{Binding Layer.ID}" Click="rdActiveLayerMS_Click" Loaded="rdMSActiveLayer_Loaded"> </RadioButton> <Slider Maximum="1" Value="{Binding Layer.Opacity, Mode=TwoWay}" Width="50" /> </StackPanel> </DataTemplate> </esri:Legend.MapLayerTemplate> <esri:Legend.LayerTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" x:Name="stackpanel1"> <CheckBox IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" > </CheckBox> <RadioButton GroupName="grpLayer" Name="rdActiveLayer" IsEnabled="True" Content="{Binding Label}" Tag="{Binding Layer.ID}" Click="rdActiveLayer_Click" Loaded="rdActiveLayer_Loaded"> </RadioButton> </StackPanel> </DataTemplate> </esri:Legend.LayerTemplate> <esri:Legend.LegendItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" x:Name="stackpanel1"> <Image Source="{Binding ImageSource}"></Image> <sdk:Label Content="{Binding Label}" MinWidth="40"></sdk:Label> </StackPanel> </DataTemplate> </esri:Legend.LegendItemTemplate> </esri:Legend> And here's my Loaded method: private void rdMSActiveLayer_Loaded(object sender, RoutedEventArgs e) { RadioButton rb = sender as RadioButton; object dc = rb.DataContext; //this is null LayerItemViewModel vm = dc as LayerItemViewModel; Layer lyr = vm.Layer; //this points to the Dynamic Service Layer (not the sublayer) //rb.Name = lyr.ID; if (TOCDialog._ActiveLayer == null) { if (lyr != null && (lyr is ArcGISDynamicMapServiceLayer || lyr is ArcGISTiledMapServiceLayer)) { TOCDialog._ActiveLayer = lyr; rb.IsChecked = true; //this is not setting for some reason } } } Thanks for the help. Karen
... View more
03-28-2013
05:45 AM
|
0
|
0
|
646
|
|
POST
|
The database/SDE/ArcGIS Server environment is local. Havent changed the password yet, but did just try it with the -s option. Same error.
... View more
03-22-2013
12:12 PM
|
0
|
0
|
3866
|
|
POST
|
It didn't work by putting in the name of the computer for the -d option either. 2 pictures attached. The first one are the commands to create and register the service. The second one shows the service being listed as well as starting the service. Other ideas? From giomng_esri_sde.log: Fri Mar 22 12:36:41 2013 - ****** Spatial Database I/O Manager ****** Fri Mar 22 12:36:41 2013 - SDE System Startup Initiated . . . Fri Mar 22 12:36:41 2013 - Validated System Paths. Fri Mar 22 12:36:41 2013 - SDE IOMGR going into background . . . From sde_esri_sde.log: ------------------------------------------------------- ArcSDE 10.1 for SQL Server Build 679 Thu Apr 5 11:43:21 2012 ------------------------------------------------------- IDBInitialize::Initialize Failed init_DB DB_instance_open_as_dba: -93 DBMS error code: 18456 Microsoft SQL Server Native Client 10.0: Login failed for user 'sde'. positive the login is correct.
... View more
03-22-2013
10:42 AM
|
0
|
0
|
3866
|
|
POST
|
Yes. Understood. This is just a Dev server. Here's the SDE Commands to generate the Service, including the List command. See attached image. But one curious thing too is that when I did the "Create Enterprise Geodatabase" command, I could not run it with the Instance set to <Instance_Name> or the instance set to <Machine_Name>\<Instance_Name> It ONLY ran if the Instance was set to <Machine_Name>
... View more
03-21-2013
09:32 AM
|
0
|
0
|
3866
|
|
POST
|
Having problems getting an SDE Service started. Environment: Windows 7 64 bit, Sql Server 2008 R2 Standard, Desktop/Enterprise SDE on 10.1 Did the following steps: 1. Ran Create Enterprise Geodatabase: Platform: SQL_SERVER Instance: <Machine Name> (but the instance is MSSQLSERVER so could this be wrong) Database Administrator sa Database Administrator Password: <DB password> Checked SDE owned Geodatabase Administrator sde Geodatabase Admin Password: sde (but I later changed this to sde123 Auth File: C:\Program Files\ESRI\License 10.1\sysgen\keycodes 2. Made sure I have esri_sde set in my services.sde and my system services location. 3. Created the service: sdeservice -o create -d sqlserver -p sde123 4. Registered the service: sdeservice -o register -d sqlserver -r admin_database -v G 5. Listed the service 6. Connected to the database using ArcCatalog with my user sde. No problem. Also connected using Sql Server Management studio. No problem. 7. Started the service. Errror (always the same error): IDBInitialize::Initialize Failed init_DB DB_instance_open_as_dba: -93 DBMS error code: 18456 Microsoft SQL Server Native Client 10.0: Login failed for user 'sde'. Checked out: http://forums.arcgis.com/threads/73608-ArcGIS-10.1-Starting-�??ArcSDE-Service-(esri_sde)-quot-stops!?highlight=sdeservice+SqlServer And another document on that error.
... View more
03-20-2013
06:23 PM
|
0
|
8
|
6196
|
|
POST
|
Is there an event I can run after a certain amount of time if the Feature Layer hasn't completed loading? I have map.addLayer(fLayer) Then, dojo.connect(fLayer, "onUpdateEnd", function(evt) { HideProgressIndicator(); }); dojo.connect(fLayer, "onUpdateStart", function(evt) { ShowProgressIndicator(); }); But in some cases, my Feature Layer takes a long time to update so I basically want to execute HideProgressIndicator() if the layer hasn't completed loading within certain amount of time. There's setTimeout(function() { HideProgressIndicator(); }, 2000); but the indicator will still stay on till onUpdateEnd occurs.. Karen
... View more
01-22-2013
06:51 AM
|
0
|
0
|
678
|
|
POST
|
I'm using a config.js file similar to many examples on the ESRI site. I've got a djConfig statement as follows: djConfig = { parseOnLoad: true, isDebug: true, packages: [ { "name": "modules", "location": location.pathname.replace(/\/[^/]+$/, "") + "/modules" } ] }; In my modules.config, I'm setting various operational layers. However, when I modify the config to set different operational layers, it's as though the new settings/layers aren't showing up in my website. I've cleared my cache, etc etc, but still, the old settings/layers still show up. I've verified this with Fiddler. It works fine if I make the change and run it using Aptana Studio. Just doesnt refresh properly when running it on my Web Server. Is there a property in my module, or something in djConfig to be assured that my modules refresh on page load?
... View more
01-03-2013
07:58 AM
|
0
|
1
|
956
|
|
POST
|
In the following example, after I get the layer, how can I tell what layer type it is? Ie Tiled or Dynamic, or Feature? I know I can read it from what I startup the map with, but there must be another way.. Seems like an easy question, but I couldnt find it.. Thanks. function getLayerProperties() { for(var j = 0; j < map.layerIds.length; j++) { var layer = map.getLayer(map.layerIds ); alert(layer.id + ' ' + layer.opacity + ' ' + layer.visible); } }
... View more
12-07-2012
05:19 AM
|
0
|
0
|
2091
|
|
POST
|
Thanks John for your reply. As I understand the tools available ArcGIS JavaScript API are service oriented map, then what I would play my report is generated with data services with another tool in javascript, Do you have any suggestions for focus to try and solve my problem? Since I am new to javascript and have no idea how. I can think of something similar to how a printer object in Visual Studio 6.0 thanks Check out the new Print geoprocessing Task in 10.1. But, if you want to get more complicated and add tables and charts and other things, you might need to write a Server Object Extension to solve your issue. I ended up going that route for some work I was doing.
... View more
10-16-2012
07:08 AM
|
0
|
0
|
1282
|
|
POST
|
Tyler: I'll be curious to see what fixes the problem? You may also need to open up some ports so the Servers can communicate. Karen
... View more
09-18-2012
08:47 AM
|
0
|
0
|
954
|
|
POST
|
I'm just starting to build the application now. But it's a public application so want to wrap my head around what Operating Systems it SHOULD work on. ie., I'll probably alert the user if it's not one of the supported Operating Systems... Karen
... View more
09-18-2012
08:16 AM
|
0
|
0
|
837
|
|
POST
|
I noticed on the JavaScript API Concepts page, there's a bullet point, ???Support for Android 2.2+, Blackberry 6+, iOS 3 Since there's so many operating systems out there for Smartphones, I wonder if the JavaScript API has been tested and run on OTHER Operating Systems? Does that statement mean that the JavaScript API is ONLY supported on those Smartphone OS devices? If so, is ESRI working to increase testing on devices running on other Operating Systems? Also, wondering what folks experience is with doing an HTML5/JavaScript API application that run across all devices? Thanks. Karen
... View more
09-18-2012
07:49 AM
|
0
|
2
|
1363
|
|
POST
|
Also, is there a .NET version of that same SOE out there anywhere? The only source for the SOE is a Java-based version. All the rest of the stuff in that .zip file are clients.
... View more
05-08-2012
01:02 PM
|
0
|
0
|
2178
|
|
POST
|
Thanks Kevin.. That's perfect.. Should have read those direction first before responding (oops)... Now I get to see if the Elevation layer can be a WCS type of layer (which is what ours will be)..
... View more
05-08-2012
11:48 AM
|
0
|
0
|
2178
|
|
POST
|
Hi Kevin: Thanks so much for the response. That 10.1 tool looks interesting. But back to the question at hand: We are looking for a way to replace the data utilized in the SOE, or the ProfileService (at http://samplesserver2.arcgisonline.com/arcgis/services Elevation/ESRI_Elevation_World) I also checked out: http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer and it looks like the data it uses for this is a Global Elevations layer, which doesn't look to be quite precise enough for my purposes. The SOE that's at http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=87BEC705-1422-2418-34B5-308930DE323A may handle this, but the source provided is in Java (and I haven't researched the code enough yet to see if it supports what I'm asking, or if its only a client app). So am wondering if that's the only solution for the problem? (ps. would be nice to get the model associated with the ProfileService?).. Thanks again....
... View more
05-08-2012
11:32 AM
|
0
|
0
|
2178
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-17-2019 08:31 AM | |
| 1 | 11-21-2017 08:58 AM | |
| 1 | 08-14-2018 01:16 PM | |
| 1 | 02-13-2017 07:43 AM | |
| 2 | 10-11-2018 06:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|