|
POST
|
Dominique, good afternoon. thank you for responding to my post. Sorry for the delay in responding to your post. I am using ESRI Silverlight API 3.0 (sl 5) and I did not see a navigation.cs file at all. there is a SLProject/Styles/NavigationStyle.XAML with no code behind. the link above talks extensively about Navigation.cs - i did see the link making this post last week. thanks for your time. regards Ravi.
... View more
09-20-2012
09:48 AM
|
0
|
0
|
423
|
|
POST
|
dear Readers, I am using ESRI's silverlight template for visual studio 2010 sp1/ silverlight 5/ esri api 3.0. <esri:Navigator element in MainPage is inheriting it from ESRI.ArcGIS.Client.Toolkit.Navigation class. the esri mapping template (not viewer) has functions/buttons like ZoomFullExtent, ZoominButton and ZoomOutbutton. How easy is it to change ZoomFullExtent to be set to initial extent set in mainpage.xaml. NavigateStyle.XAML does not have .cs code behind file. how easy is it to add another button to the same navigator object to set the map back to initial extent? this is js example: http://forums.arcgis.com/threads/48318-Set-zoomToFullExtent-to-be-my-Initial-Extent = how to get it to silverlight? thanks and regards ravi.
... View more
09-13-2012
01:40 PM
|
0
|
3
|
963
|
|
POST
|
Above assumptions are valid per ESRI support staff member. My customer has hi-level support with ESRI and they were kind to respond immediately. FOLLOWING IS TRUE per ESRI: if there are X Y double/float/ columns, programmatically, I can check for changes and update SQLGeometry::POINT (newX, newy), iWKID) on the feature record and use ESRI API 3.0 to update fdature layer shud take it to the new geometry. The staff member also indicated that with 10.1, it is possible to store those new edits to a different version for some one else to QA before posting / re-conciling the changes to default version. regards ravi.
... View more
08-16-2012
10:15 AM
|
0
|
0
|
414
|
|
POST
|
We will be using AGS 10.0x or 10.1 (most probably 10.1) for our REST services. Development plan is to let users modify a points layer (both geometry and attributes) on a silverlight client using API 3.0 or higher with screens developed using VS 2010 sp1 or higher. we will be using some feature server services from REST/10.1 - I was told that the layer exposed through the map document needs to be registered and versioned in sde. http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#EditToolsExplicitSave As a developer, I will use ESRI's feature service edit functions (above link) for save/cancel from the samples website to do the following: I had promised them that they would be able to modify the selected point feature (as shown by the samples in the link above) by typing X, Y from GPS coordinates (or copy/paste from their ascii files) into specific lat long attribute columns and move the point by updating the geometry/shape column (SQL server geom object SQLGeometry::POINT (x, y), iWKID) or whatever is the syntax. After the edit is satisfactory, the modified feature record will be committed using FeatureEdit sessions functions of ESRI API 3.x (similar to indicated in above link). I want to be sure that i promised them something do-able - and not the moon. regards ravi.
... View more
08-15-2012
02:15 PM
|
0
|
2
|
826
|
|
POST
|
Good afternoon. i have SL 5.0, ESRI api 3.0 rc on my machine and it threw 84 errors because i have esritoolbaritem and functions associated with the same. now i have got the extensibility v2.4 and i am not be able to locate ToolbarItem member in any of the dlls included into the projs. i used VS 2010's object browser to search through ESRI.ArcGIS.Client.Application.Control.dll, *.Application.Layout.dll, ESRI.ArcGIS.Client.Extensibility.dll all built on Jan 10th, 2012 8:04pm. do i need to go back 1 step and get 2.3 extensibility kit published earlier than that (nov 2011?). thanks n regards ravi.
... View more
07-05-2012
10:31 AM
|
0
|
0
|
450
|
|
POST
|
Problem solved. I do not know how to set this Question as ANSWERED.
... View more
02-17-2012
09:10 AM
|
0
|
0
|
474
|
|
POST
|
Dbroux, good morning. thanks a lot for your reply. i had opened an esri incident (ending with *9075) and the service representative told me yesterday to try using myMap.Extent = newExtent instead of myMap.ZoomTo(newExtent). that fixed my problem for now - of course, i would not give that animated fly by zoom effect. i did not know about that .SnapToLevel flag in the map document. thanks for your help. regards ravi.
... View more
02-14-2012
06:40 AM
|
0
|
0
|
474
|
|
POST
|
dear Readers, good morning. we are implementing a national solution to monitor wetland easement areas of interest. the application would let the users select state, county, and the contract area of interest from 3 drop downs boxes. when the user selects the state, using a general layer, the application zooms to the extent of the selected state. Same happens when the users select county and contract areas of interest. The contract areas are usually of few hundred acres size and when the application zooms to the extent of few hundred acres, the imagery cached layers from a arcmap rest based service are loaded into the map document. all these zoom and selection of drop down info happens asynchronously in the applcation. Few observations that ARE causes for concern: 1. when the application is zooming into the 1st contract area of interest, the application stops half way between the county and contract area extent and is usually at the scale of displaying 10s of thousands of acres - since there is a scale dependency for showing imagery layers, the selected contract areas are highlighted (occupies less than 5% of the screen extent) and imagery is not turned on. when the user SELECTS another contract area in the same county, it zooms to the right extent and displays the imagery. when the user goes back to the 1st contract area select, it zooms into the contract area completely and displays the imager correctly. it consistently happens for each new county. The code for zooming into area of interest is used for ESRI's sample site - gettng the extent of teh selected feature - adding a buffer and zoom ing into the buffered extent. 2. when the zoom is happening all the times explained below, the application gets SQL server spatial data into the grid using WCF and draws appropriate graphics (usually less than 10 - rarely more than 25) on the screen. 3.as explained in bullet 1, the retrieval of data happens in less than 5 seconds and appears 'instantaneous' to the user. 4. Sometimes, the cached imagery redraw from the server is slower than the selected graphic zoom and when the cached imagery is drawn, the application zooms out (altho there is no code to zoom for ANY imagery extent) to display imagery for a larger extent. the users feel a bounce of 'zoom' happening in front of the eyes. as i am typing this statement, i went back to see whether there was any code set for .Zoom for the imagery load and i did not find any. 5. When the users change from 1 county to another, the behavior can be repeated for the1st contract area. 6. after a few selections of the contract areas, the cachced imagery service stops drawing on the selection of new contract areas. we never had this issue when we used dynamic service based imagery bouncing extents. But to be fair, i should say that once the users get the draw/zoom of the contract area correctly panning around the contract areas with cached imagery is a lot smoother and faster than using dynamic imagery service. to minimize confusion to the application due to the returns from async calls, all calls to do any unit of work (zoom to contract area, load imagery for curr extent, loading data grid, and drawing imagery) are made in the *_CompletedTask section of the previous task. inspite of every precaution, the application behaves as indicated above. any ideas would be of great help. regards ravi.
... View more
02-13-2012
07:00 AM
|
0
|
3
|
995
|
|
POST
|
Chris, thanks for your time. we have upgraded the underlying API dll to 2.x and re-compiled, but could not make use of all the 'special/new' features of 2.x if it involved a lot of re-writing sections of the app. for example, we used the webmercator converter object because i did not have disturb the existing structure of the app - but cannot use the SDE writing/update functions from feature server REST service to edit sde (reg and editable) layer. thanks for your patience and help. regards Ravi. Ah, your using our Silverlight API v1.x, that makes a big difference. If you ever get the chance to upgrade to our current version a lot of what you are trying to do would be a lot easier to accomplish. Glad you got it all worked out.
... View more
01-10-2012
10:45 AM
|
0
|
0
|
890
|
|
POST
|
Chris, i think the function is should be: myNewGraphic.Geometry = ESRI.ArcGIS.Client.Geometry.Clone(gSelectedGraphic.Geometry); i used it and i was able to see the graphics on the screen. thank you for your help. regards Ravi.
... View more
01-09-2012
12:34 PM
|
0
|
0
|
890
|
|
POST
|
Chris, good afternoon. i did not find existingGraphics.Geometry.Clone() function in the geometry member. So i will not be able implement your idea. i do understand that featureservice does a lot for us these days. thanks for the suggestion. i am not able to implement due to project timeline considerations: the app that I am trying to complete began on the ArcGIS SL API 1 Beta in March/Apr 2009 after a previous version on WebADF did not address user experience requirements. it was slow and writing to sde was a pain. then Silverlight api 1 beta showed better hope and we found that we had to write code to persist data in sde. so i wrote modules as explained in http://forums.esri.com/Thread.asp?c=158&f=2455&t=280568#871904. then writing to sde was a problem because i instantiated fine grained arcobjects on teh server and sometimes it will take soemtime to get loaded into memory and there were perf issues. so i wrote the geometries as sql server geometry objects by Sep 2009. the app then went into pilot phase in mid 2010 and this request is the last change i am trying to make before the app can go live nationwide. any kind of technology change or implementation change has to go through many testing - particularly a total one like this. it is time consuming to go back n 'fix' everything n test it. due to functions not available in ESRI SL API in 1.x and in early parts 2, i read the geometry object into the client, then go thro the coords, construct the esri client geometres on the fly and based on a certain attribute status, i set the color on the fly. thanks for your input. i am planning to use http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery- visual state manager to see whether i can make anything happen. i had some hiccups and had to toss out the changes and re-checked (undo changes) the code from the source control to test out your suggestions. appreciate your help regards Ravi. Hi Ravi, When copying the graphic you need to use the Clone() method or you will have two references to the same graphic, when you try to add the second graphic reference to another GraphicsLayer our API will throw an exception because it knows that the graphic belongs to a different GraphicsLayer already. If you want to copy to a new GraphicsLayer you can make a new instance like below. Graphic myGraphic = new Graphic(); myGraphic.Geometry = selectedGraphic.Geometry.Clone(); My question to you is why are you going to this length in the first place. If you are using FeatureLayer with graphics comming from a FeatureServer then a selection color is built into the FeatureLayer and all you have to do is set myGraphic.Selected = true and the renderer associated with the FeatureLayer will change the selection color for you. then when you set MyGraphic.Selected = false the color will change back. If you are using a GraphicsLayer you will need to add selection state to your symbols using this SDK Sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SelectGraphics
... View more
01-09-2012
11:59 AM
|
0
|
0
|
890
|
|
POST
|
dear Readers, good afternoon. I have successfully loaded graphics from SQL Server geometry objects using certain query conditions and associated them with certain colors based on their attribute values. When user selects them from the grid (not esri feature grid - this app was begun at esri API 1.x), the selected row is associated with the graphic in the collection using an ID and it is flashed for a few seconds using utils.flash. to make it convenient on the user, the 1st vertex is highlighted with a pushphin. all these work great. PROBLEM: the users want to highlight the selected graphic in a different color - since cyan is not used in the coloring scheme for displaying attribute information, and since majority of the users come from an ArcMap background, i thought it might be appropriate to assign it to cyan. so i copied the selected graphic into another graphic object and tried to add it to ANOTHER LAYER and the application is complaining that: Specified argument was out of the range of valid values. Parameter name: Graphic is already associated with another layer. @ esri.arcgis.client.graphicslayer.addgraphic(graphic g). i have attached a pdf of the error message screen capture. i did a exc.ToString() and got all the info I could. i do not wnat to complicate the app by adding the Nth dictionary to keep track of the existing color and the ID - clearing it etc. if it comes to that, i will do it. i was wondering whether there was another simpler way of doing it. thanks for your help. regards Ravi.
... View more
01-06-2012
12:35 PM
|
0
|
5
|
3379
|
|
POST
|
Ms. Jennifer, good morning. sorry for the delay in replying to your post. thanks a lot for the above links. I got WMS to show up WITH difficulty. WMS demo link did not say a few things clearly and I had to figure them out myself by trial and error. some of these could have been indicated in esri sample wms site. 1. even tho there was a sample code for http Handler.ashx, i did not need them for a WMS service 1.3.0. 2. therefore, i did not have to declare a proxyURL. 3. SkipGetCapabilities flag did not mean a thing to code. it worked both ways. 4. I did not have specify image format. it worked both ways. another annoying thing i found was WMS sample page needed a detailed description and it had little or none, where as other simpler example did not need much explanation and they had a detailed explanation. it is nothing against you - i thank you for trying to help me out. happy new year and thank you for your time and ever willingness to help people like us. regards ravi. ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer wmsLayer4Lidar = new ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer();�?? wmsLayer4Lidar.Url = "http://myServerName.myDomain.Com:7575/ok_sallisawcreek_2006";//&format=image/jpeg"; wmsLayer4Lidar.Version = "1.3.0"; wmsLayer4Lidar.Opacity = 0.5; wmsLayer4Lidar.Layers = new string[] { "Points" }; wmsLayer4Lidar.ID = "WMSLidarLayer"; wmsLayer4Lidar.SkipGetCapabilities = false; wmsLayer4Lidar.SupportedSpatialReferenceIDs = new int[] { 3857 }; wmsLayer4Lidar.Visible = true; wmsLayer4Lidar.InitializationFailed += new EventHandler<EventArgs>(wmsLayer4Lidar_InitializationFailed); Map.Layers.Add(wmsLayer4Lidar);
... View more
01-03-2012
07:21 AM
|
0
|
0
|
1830
|
|
POST
|
http://myservername.mydomain.com:7575/index?SERVICE=WMS%26Version=1.1.1%26REQUEST=GetMap%26MAX_POINTS=19999%26POINT_SIZE=2%26TRANSPARENT=TRUE%26BGCOLOR=0xFFFFFF%26SRS=EPSG:3785%26BBOX=-15023663.0215838,2076168.20828584,-3997163.06927742,7007273.77701913%26FORMAT=image/png%26EXCEPTIONS=INIMAGE%26WIDTH=1127%26HEIGHT=504 How do I consume this WMS service in my silverlight app. i have visual studio 2010 and used esri's 2.2.0.629 version of silverlight? ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer wmsLayer4Lidar = new ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer(); �?? wmsLayer4Lidar.Url = strURLAboveMentionedURL; myMap.Layers.Add(wmsLayer4Lidar); it is throwing me a silverlight error after i add the layer - not at that statement - but later. try catch did not help me. so i went to the script debugger: errMsg "Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options) at System.Xml.Linq.XDocument.Parse(String text) at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e) at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e) at System.Net.WebClient.DownloadStringOperationCompleted(Object arg) Code: 4004 Category: ManagedRuntimeError Message: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options) at System.Xml.Linq.XDocument.Parse(String text) at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e) at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e) at System.Net.WebClient.DownloadStringOperationCompleted(Object arg) " String to begin with, an example to add a WMS with above format would be greatly appreciated in the silverlight samples page. i am planning to change the URL, break it up and assign appropriate values and then try to add to the map. in any case, examples or links to example would be great. thanks and regards ravi.
... View more
12-14-2011
01:47 PM
|
0
|
7
|
4362
|
|
POST
|
Mr Rex, good morning. My supervisor downloaded and installed the latest version of Silverlight v 4.0.6* onto a different server without .NET framework 4.x and IE on that server display sample SL website contents without any difficutly. So based on our findings - somewhere some tag or something remembers v 4.0.6* on the sample website. thanks once again for your help. regards Ravi.
... View more
03-14-2011
09:21 AM
|
0
|
0
|
811
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-13-2013 07:52 AM | |
| 1 | 09-10-2013 02:15 PM | |
| 1 | 03-20-2023 06:38 AM | |
| 1 | 05-17-2022 07:41 AM | |
| 1 | 01-04-2021 10:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-10-2025
08:54 PM
|