|
POST
|
I created a new ArcGIS Runtime for WPF application. I then went into Blend and added a StackPanel with a nice transition between hidden and shown. Back in Visual Studio 2012, I can run the application and everything works fine. However, if I try to add the ConstrainExtentBehaviour to the map, I get the following error: The name "ConstrainExtentBehavior" does not exist in the namespace "http://schemas.esri.com/arcgis/client/2009" The full XAML code is below. Is it possible that there's a name conflict between the ArcGIS schema and one of the Expression schemas? Thanks, Jon. <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/client/2009" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" x:Class="ArcGISWpfApplication2.MainWindow" Title="MainWindow" Height="350" Width="525"> <Grid x:Name="grid"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="VisualStateGroup"> <VisualStateGroup.Transitions> <VisualTransition GeneratedDuration="0:0:0.3"/> </VisualStateGroup.Transitions> <VisualState x:Name="Hidden"/> <VisualState x:Name="Visible"> <Storyboard> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="stackPanel"> <EasingDoubleKeyFrame KeyTime="0" Value="-95"/> </DoubleAnimationUsingKeyFrames> <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="stackPanel"> <EasingColorKeyFrame KeyTime="0" Value="#7F000000"/> </ColorAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <esri:Map x:Name="_map" UseAcceleratedDisplay="False"> <i:Interaction.Behaviors> <esri:ConstrainExtentBehavior ConstrainedExtent="-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892" /> </i:Interaction.Behaviors> <esri:ArcGISTiledMapServiceLayer ID="World Topo Map" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> </esri:Map> <StackPanel x:Name="stackPanel" HorizontalAlignment="Left" Height="110" Margin="0,209,0,-95" VerticalAlignment="Bottom" Width="{Binding ActualWidth, ElementName=grid}" Background="#00000000" RenderTransformOrigin="0.5,0.5"> <StackPanel.RenderTransform> <TransformGroup> <ScaleTransform/> <SkewTransform/> <RotateTransform/> <TranslateTransform/> </TransformGroup> </StackPanel.RenderTransform> <i:Interaction.Triggers> <i:EventTrigger EventName="MouseEnter"> <ei:GoToStateAction StateName="Visible"/> </i:EventTrigger> <i:EventTrigger EventName="MouseLeave"> <ei:GoToStateAction StateName="Hidden"/> </i:EventTrigger> </i:Interaction.Triggers> </StackPanel> </Grid> </Window>
... View more
09-20-2013
12:57 PM
|
0
|
1
|
1140
|
|
POST
|
Does the ArcGIS Runtime SDK for WPF 10.1.1 support Blend for Visual Studio? After installing ArcGIS Runtime SDK for WPF 10.1.1, and opening Blend for Visual Studio, the ArcGIS project templates don't appear in the New Project dialog (whereas they do in the Visual Studio 2012 New Project dialog). The ArcGIS Runtime SDK for WPF 10.1.1 system requirements indicate that Visual Studio 2012 and Expression Blend 4 are supported. Does this seem inconsistent with Microsoft's roadmap for Blend? Is there something easy that can be done (e.g., moving templates to another folder) to add support in Blend for Visual Studio? Thanks, Jon.
... View more
08-28-2013
07:54 AM
|
0
|
1
|
1105
|
|
POST
|
After consulting with Esri technical support, here are the full instructions for setting up a local install of the Javascript API. Following these instructions results in a properly configured Javascript API: Follow original JSAPI install help to modify init.js files using domain name or IP for the server name. (Note: if using the server name, the name must be fully-qualified with the domain name.) Open IIS and configure <server_name>\Sites\Default Web Site\arcgis_js_api\library\3.3\jsapi as a Web Application. Still in IIS, select Default Document for jsapi the web app. Make sure that Default.ashx (case-sensitive) is in the list. Make modifications to C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\webapps\arcgis#rest\WEB-INF\classes\resources\rest-config.properties. Make sure lines 11 through 14 look like this: #JS API URLs jsapi.arcgis=http://<server_name>/arcgis_js_api/library/3.3/jsapi/ jsapi.arcgis.sdk=http://<server_name>/arcgis_js_sdk/sdk/ jsapi.arcgis.css=http://<server_name>/arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/tundra/tundra.css Make sure the following imports are in: C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\webapps\arcgis#rest\www\client\mapserver\mapserverJSAPI.jsp: <style type="text/css"> @import "<%=jsapiArcgisCssUrl%>"; @import "<%=cpath%>/static/jsapi.css"; @import "<%=jsapiArcgisUrl%>/js/esri/css/esri.css"; </style>
... View more
03-07-2013
05:06 AM
|
0
|
0
|
2422
|
|
POST
|
Great! Thanks for the info, Pete! Idea posted at http://ideas.arcgis.com/ideaView?id=087E00000004Vj1IAE to request that web tier authentication also be used for ArcGIS Server Manager.
... View more
02-21-2013
04:33 AM
|
0
|
0
|
1287
|
|
POST
|
Yes, this is what we've done (see attached image). [ATTACH=CONFIG]21991[/ATTACH]
... View more
02-20-2013
07:36 AM
|
0
|
0
|
1287
|
|
POST
|
I've created an ArcGIS 10.1 with SP1 for Server site, installed the Web Adaptor, and registered the site with the Web Adaptor. When I connect to the ArcGIS Server Manager through IIS (port 80), I still have to log in to ArcGIS Server Manager. It seems, then, that I'm not properly configured to use Windows Integrated Authentication. What are the missing steps? Thanks, Jon.
... View more
02-19-2013
08:57 AM
|
0
|
4
|
2503
|
|
POST
|
I've created a map document in ArcMap 10.1 SP1, and from that I'm sharing it as a service definition. The data in the map document is stored on a shared drive (which happens to be on the same machine that hosts my ArcGIS Server instance). The data folder is registered with ArcGIS Server (using its UNC path). I'm saving the .sd file in the shared folder on the server. Creating the service definition is taking forever (over 1/5 hours). Granted, the data source is fairly large, but since it's not being copied to the server, what's taking so long to create the service definition? Thanks, Jon.
... View more
02-19-2013
08:18 AM
|
1
|
1
|
1068
|
|
POST
|
Hi Diana, When I browse to the following in Chrome http://172.10.1.41/jsapi/arcgis/?v=3.3 I get a 404 error. I expected this, because it's not the correct path to init.js. In the rest-config.properties, I specified the correct path, which is: http://172.10.1.41/arcgis_js_api/library/3.3/jsapi/ When I browse to this path in Chrome, then the contents of the .js file are displayed. But, note that I didn't specify the first path above -- it's what's contained in the HTML when I click on a map service in ArcGIS Manager to view it. Thanks, Jon.
... View more
02-15-2013
04:21 AM
|
0
|
0
|
2422
|
|
POST
|
Yes, I'm sure the IP address is not the issue. The machine is not connected to the Internet, so I cannot test with the libraries on Esri's site.
... View more
02-14-2013
09:15 AM
|
0
|
0
|
2422
|
|
POST
|
Hello, Having a problem configuring the ArcGIS Server Javascript API. I've downloaded v3.3 from Esri.com, and followed the installation instructions. Since the target server does not have Internet access, I've changed the configuration to point to the Javascript API that I installed on the local server, following the directions in the REST API SDK help. I've set up several services that are running, and I can view them in ArcMap and in ArcCatalog. However, when trying to view the services from ArcGIS Manager, the map does not appear, and the error ''dojo' is undefined' is thrown. I think that the problem might be with how the URLs are being constructed in the output. Here are the contents of the rest-config.properties file that I modified according to the REST API SDK instructions: #The log level of the application #possible values: SEVERE,WARNING,INFO,CONFIG,FINE,FINER,FINEST,OFF,ALL logLevel=SEVERE #enable/disable console logging consoleLogging=false #Collection of allowed cross-domain origins, If this property is not specified, it will default to allowing access to all domains allowedOrigins=* #Client App properties #JS API URLs jsapi.arcgis=http://172.10.1.41/arcgis_js_api/library/3.3/jsapi #jsapi.arcgis.sdk=http://help.arcgis.com/en/webapi/javascript/arcgis/ jsapi.arcgis.css=http://172.10.1.41/arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/tundra/tundra.css #ArcGIS.com URLs arcgis.com.map=http://www.arcgis.com/home/webmap/viewer.html arcgis.com.map.text=ArcGIS.com Map but looking at the HTML output when I try to preview the Sample World Cities, the URLs have changed: [HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title>ArcGIS JavaScript API: SampleWorldCities</title> <style type="text/css"> @import "http://172.10.1.41/jsapi/arcgis/3.3/js/dojo/dijit/themes/tundra/tundra.css"; @import "/arcgis/rest/static/jsapi.css"; </style> <script type="text/javascript"> var djConfig = { parseOnLoad: true }; </script> <script type="text/javascript" src="http://172.10.1.41/jsapi/arcgis/?v=3.3"> </script> <script type="text/javascript"> dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); dojo.require("esri.map"); var map; function init() { map = new esri.Map("map"); var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer"); map.addLayer(layer); var resizeTimer; dojo.connect(map, 'onLoad', function(theMap) { dojo.connect(dijit.byId('map'), 'resize', function() { clearTimeout(resizeTimer); resizeTimer = setTimeout(function() { map.resize(); map.reposition(); }, 500); }); }); } dojo.addOnLoad(init); </script> </head> <body class="tundra"> <div dojotype="dijit.layout.BorderContainer" design="headline" gutters="true" style="width: 100%; height: 100%; margin: 0;"> <div dojotype="dijit.layout.ContentPane" region="top" id="navtable"> <div style="float:left;" id="breadcrumbs">ArcGIS JavaScript API: SampleWorldCities</div> <div style="float:right;" id="help"> Built using the <a href="http://help.arcgis.com/en/webapi/javascript/arcgis/">ArcGIS JavaScript API</a> </div> </div> <div id="map" dojotype="dijit.layout.ContentPane" region="center"> </div> </div> </body> </html> [/HTML] Any ideas on what I should look at to fix my configuration? Thanks, Jon.
... View more
02-14-2013
08:26 AM
|
0
|
5
|
5750
|
|
POST
|
Hi Brian, Did you ever resolve this issue with Esri? Thanks, Jon.
... View more
02-13-2013
05:40 AM
|
0
|
0
|
1324
|
|
POST
|
ArcGIS Runtime for WPF provides accelerated display using DirectX. Is there support within the Runtime for OpenGL as well, or is any use of OpenGL be done completely outside of the Runtime SDK. Thanks, Jon.
... View more
01-09-2013
04:17 AM
|
0
|
2
|
2235
|
|
POST
|
I can't create a new geodatabase on a database server. When attempting to create the new geodatabase, the new geodatabase appears to be created and shows up in the ArcCatalog contents pane. However, when I attempt to connect to the geodatabase in ArcCatalog, I get the following error: [INDENT]Failed to connect to database. Bad login user.[/INDENT] When I refresh ArcCatalog, the geodatabase no longer appears in the ArcCatalog contents pane. Looking at SQL Server Manager, the new geodatabase does not appear in the list of databases. The log file doesn't give any indication of an error in creating the database (see attached -- error is when attempting to connect to the database that doesn't exist). Using ArcGIS for Server 10.1 on Windows Server 2012 with SQL Server Express 2012. Ideas on what's happening? Thanks, Jon.
... View more
10-17-2012
07:20 AM
|
0
|
3
|
4415
|
|
POST
|
Vince, I agree with everything you've said ... it would be better to separate things out into different tables. However, these requirements are dictated by external factors and likely won't be changed due to the fact that ArcGIS is one of the clients that will be accessing the database. From a certain point of view, this approach does make sense -- the features in the single table only differ schematically in their geometry type -- all other attributes, semantics, relationships, etc. are largely the same. Also, I don't think that there's necessarily an issue with storing multiple geometry types in the same column, other than that ArcGIS doesn't play nicely with it. There are a couple of other alternatives that we could consider, although I think that they're both extreme approaches. One approach **could** be to separate out the single table into various subtypes; if the taxonomy is broken down into sufficiently fine-grained chunks, then each type could be stored in its own table with its own (single) geometry type. However, this approach would result in hundreds of subtypes (thus, hundreds of different tables), and, as I indicated above, the subtypes are essentially identical in aspects other than geometry type. Another approach would be to forego the geodatabase altogether (using the SQL Server database without geodatabase schema), but then we would lose out on important geodatabase features like versioning, archiving, and replication. And, we still have the problem of getting at datasets of different geometry types separately, either through views or query layers or a similar approach. So, while I agree with you that it would be better to separate out the different geometry types, we won't be able to change this requirement. Given that, there are definitely some tradeoffs that need to be made, and I'd like to find a middle-ground solution, that, while perhaps not optimal, is at least reasonable. If anyone has modeled or implemented something similar, I'd love to hear about it (including performance issues, as Vince has indicated that these are likely to be significant). Thanks, Jon.
... View more
09-06-2012
05:45 AM
|
0
|
0
|
395
|
|
POST
|
I have a requirement to create a geodatabase in SQL Server, using the SQL Server geography spatial type. This geodatabase will be queried and edited by ArcGiS-based and non-ArcGIS-based applications. SQL Server supports storing geographies of multiple types (e.g., points, lines, and polygons) in the same geography column in the same table, but ArcGIS does not support this. Ideally, I would like to model the geodatabase so that non-ArcGIS applications can access the spatial table as a single table in SQL Server, and still allow ArcGIS applications to access the table using a separate feature class for each geometry type. Does anyone have experience or suggestions on how to model this? Thanks, Jon.
... View more
09-05-2012
12:45 PM
|
0
|
2
|
2248
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-19-2013 08:18 AM | |
| 1 | 08-13-2015 06:54 AM | |
| 3 | 01-17-2017 09:02 AM | |
| 1 | 03-26-2019 04:52 AM | |
| 1 | 04-08-2015 12:48 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-10-2020
03:10 PM
|