|
POST
|
The API support for touch and gestures was added in 2.1 http://help.arcgis.com/en/webapi/silverlight/2.1/help/index.html#/What_s_new_in_2_1/016600000025000000/ so yes v2.3 still supports touch 🙂 Thank you Jennifer!
... View more
01-04-2012
11:30 PM
|
0
|
0
|
437
|
|
POST
|
Hello Jeff, The problem is only when I zooming, but not always, displacement sometimes appears, sometimes not appears. When zoom ends, the layer is in correct place. Thanks for the response. Pau Pérez Conselleria de Infraestructuras, Territorio y Medio Ambiente http://cma.gva.es http://cartoweb.cma.gva.es Yes! this is issue is present in JS API and I have noted this too, when panning the map. After the pan operation completes the map pans but the layer gets shifted.
... View more
12-28-2011
06:19 PM
|
0
|
0
|
874
|
|
POST
|
Hi, In Silverlight API (map.rotation = double value;) we can rotate a map very easily, but I need to do that in JS Api. Is it possible in JS Api?
... View more
12-28-2011
01:52 AM
|
1
|
6
|
6689
|
|
POST
|
Hi , I have been wondering that does ESRI SL Api 2.3 based silverlight applications for touchscreens (Kiosks) may require any additional touch libraries in the application programming or the api in itself has the support for touch screen multi-touch support. I guess my question here is not confusing 🙂 . We have built an sl api application for kiosks at airport for terminal maps. The Wintellect Silverlight Touch Library on codeplex seems very promising but I am not sure for its use with the esri sl api. Needs some pointers here 🙂 Thanks,
... View more
12-27-2011
07:23 PM
|
0
|
2
|
1161
|
|
POST
|
That's a bug. We'll try to get it fixed in a future version. Thanks for reproting that. Thank you Dominique 🙂
... View more
12-07-2011
02:12 AM
|
0
|
0
|
899
|
|
POST
|
I think InfoWindow is open but is not visible until you pan the map. Try the SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple. Pan the map to where the feature is not fully visible and click on it, InfoWindow is open but is not within view until you pan the map. I had tried all the possible ways and also the infowindowsimple sample which does not help. I pan the map and a already open infowindow disappears near, atleast half a inch away from the top left and (atleast half a inch away from map edge) bottom right corners of the map.
... View more
12-07-2011
12:50 AM
|
0
|
0
|
899
|
|
POST
|
When you were using mouse event on the FeatureLayer, you had direct access to the graphic in the GraphicMouseButtonEventArgs. If you moved your mouse event to the symbol control template, you need to use screen point and FindGraphicsInHostCoordinates
FeatureLayer featureLayer = MyMap.Layers["MyFeatureLayer"] as FeatureLayer;
System.Windows.Point screenPnt = e.GetPosition(MyMap);
// Account for difference between Map and application origin
GeneralTransform generalTransform = MyMap.TransformToVisual(Application.Current.RootVisual);
System.Windows.Point transformScreenPnt = generalTransform.Transform(screenPnt);
IEnumerable<Graphic> selected =
featureLayer.FindGraphicsInHostCoordinates(transformScreenPnt);
foreach (Graphic g in selected)
{
//this must be your graphic of interest
}
Thank you Jennifer, the code and guidelines given by you, I tried them too but still I have the same behavior from the map that I dont see the info window only if the graphic is on the top left corner or bottom right corner of the map. If at the same moment I pan the map to center the info window shows but if I pan the map back to the earlier location where the graphic comes to corner of the map, the info window disappears again. it is due to the map rotation only.. please let me know your views... Thanks again 🙂
... View more
10-17-2011
10:20 PM
|
0
|
0
|
899
|
|
POST
|
Hi, In our application we have the Map control rotated to a value of -38 and have info window (http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#InfoWindowSimple) shown on the map on FeatureLayer_MouseEnter event. map.Rotation = -38;// map is rotated in the constructor LayoutRoot.Children.Add(MyInfoWindow); // info window is added in the feature layer (DefaultMarkerSymbol) mouse enter event till this point there are no issues and all works well and info window shows with all formatting correct with right details. But recently during testing we have found that the info window does not show/display if the Featurelayer Symbol (mouse enter of this symbol is supposed to show the info window) is at top left or bottom right corner of the map. If I remove the rotation code then the info window shows properly at all the corners of the map. ------------------------------------------------------- ESRI Silverlight API 2.2 MS Silverlight 4 .net 4.0 ArcGIS Server 10.0 sp2
... View more
10-16-2011
02:14 AM
|
0
|
9
|
1385
|
|
POST
|
I get an error with the .SelectedGraphics; It says that 'System.Windows.Controls.Datagrid' does not have a SelectedGraphics. Any suggestions? Change your datagrid in xaml to <esri:FeatureDataGrid (instead of using windows controls datagrid)...
... View more
08-14-2011
12:22 AM
|
0
|
0
|
465
|
|
POST
|
Has anybody ever done this in ESRI SL API -- http://help.arcgis.com/en/webapi/javascript/arcgis/demos/query/query_showinfowindow.html Any code samples help please (there are plenty of pointers but wont help..)
... View more
08-03-2011
10:02 PM
|
0
|
1
|
1917
|
|
POST
|
Can anyone share a working code for this? I already have my mouse coordinates showing in xy, but want to give the user an option to change to lat/lon on the fly. This is what I did . #region Get Lat Longs /// <summary> /// Map_MouseMove /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void Map_MouseMove(object sender, System.Windows.Input.MouseEventArgs args) { try { if (isMapLoaded & isEnabled) { System.Windows.Point screenPoint = args.GetPosition(Map); ScreenCoordsTextBlock.Text = string.Format("Screen Coords: X = {0}, Y = {1}", screenPoint.X, screenPoint.Y); ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint = Map.ScreenToMap(screenPoint); MapCoordsTextBlock.Text = string.Format("Map Coords: X = {0}, Y = {1}", Math.Round(mapPoint.X, 4), Math.Round(mapPoint.Y, 4)); Graphic pointGraphic = new Graphic(); pointGraphic.Geometry = mapPoint; pointGraphic.Geometry.SpatialReference = new SpatialReference(32640); IList<Graphic> inG = new List<Graphic>(); inG.Add(pointGraphic); GeometryService svcGeometry = new GeometryService(Service_URL.GEOMETRY_SUPREME); svcGeometry.ProjectCompleted += new EventHandler<GraphicsEventArgs>(svcGeometry_ProjectCompleted); svcGeometry.Failed += new EventHandler<TaskFailedEventArgs>(svcGeometry_Failed); SpatialReference sr = new SpatialReference(); sr.WKID = 4326; svcGeometry.ProjectAsync(inG, sr); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } } void svcGeometry_Failed(object sender, TaskFailedEventArgs e) { MessageBox.Show(e.Error.Message); } void svcGeometry_ProjectCompleted(object sender, GraphicsEventArgs e) { IList<Graphic> results = e.Results; Graphic projectedG = results[0]; //should just be one latlongTextBlock.Text = string.Format("Lat Long: N = {0}, E = {1}", Math.Round(projectedG.Geometry.Extent.XMin, 4), Math.Round(projectedG.Geometry.Extent.YMin, 4)); } private void startcoords_Click(object sender, RoutedEventArgs e) { if (startcoords.Content.ToString() == "Start Tool") { isEnabled = true; startcoords.Content = "Stop Tool"; } else if (startcoords.Content.ToString() == "Stop Tool") { isEnabled = false; startcoords.Content = "Start Tool"; } } #endregion
... View more
07-12-2011
11:36 PM
|
0
|
0
|
1744
|
|
POST
|
hi! My experience about some error of first access are solved by checking the option: "Periodically check and repair data connections for idle instances" with 30 minutes. What I have found is that my db administrator stop the database for backup issue and after that the service don't work. With this option all is ok. Note: the service is for editing data. Service with read only data are oks. This is a issue present still after upgrading to SP2. Even after setting all services with the option "Periodically check and repair data connections for idle instances" with 30 minutes. Does not help if the server has been idle over night.. in the morning whoever is the first to access the SL API application is sure to get a splat ERROR white page.. even though I tried to handle the error from code by layer initialized event..
... View more
05-25-2011
10:07 PM
|
0
|
0
|
440
|
|
POST
|
Thank you jenniferdnery! I will try. Take this code.. might help you. #region getMapScale /// <summary> /// getMapScale /// </summary> /// <param name="esriMap"></param> /// <returns></returns> public double getMapScale(Map esriMap) { double dpi = 96; //screen resolution: pixels per inch double screenUnitsPerMapUnit = 39.37; //inches per meter double mapResolution = esriMap.Resolution; double scale = (dpi * screenUnitsPerMapUnit * mapResolution); return scale; } #endregion #region MAP SCALE CHANGE /// <summary> /// MAP SCALE CHANGED /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Map_ExtentChanged(object sender, ExtentEventArgs e) { double Map_Scale = getMapScale(Map); int scaled = Convert.ToInt32(Math.Round(Map_Scale)); MapScale.Text = "1 : " + scaled; } #endregion
... View more
04-20-2011
11:15 PM
|
0
|
0
|
744
|
|
POST
|
Your first atttempt with WebMercator. The WebMercator is a client side projection from "web mercator" to Geographic (4326 ) and back. You need to use the GeometryService projection and project 32640 to 4326. Looking at your geometry service projection it appears you are projecting from 32640 to 32640 which is the same thing as you started with. all you should need to do is reaplace the out spatial reference with 4326. Thanks Chris..
... View more
04-18-2011
09:14 PM
|
0
|
0
|
1744
|
|
POST
|
Hi, I need help to show lat long on mouse hover on map. I have tried the existing code sample --- ESRI.ArcGIS.Client.Projection.WebMercator webmercator = new ESRI.ArcGIS.Client.Projection.WebMercator(); ESRI.ArcGIS.Client.Geometry.MapPoint latlongpoint = (ESRI.ArcGIS.Client.Geometry.MapPoint)webmercator.FromGeographic(mapPoint);//here I have tried toGeographic also.. for just a try..but still got error .. latlongTextBlock.Text = string.Format("Lat Long: X = {0}, Y = {1}", Math.Round(latlongpoint.Extent.XMin, 4), Math.Round(latlongpoint.Extent.YMin, 4)); But I kept on getting Invalid Spatial Reference error. My map wkid is 32640- wgs84 zone 40N projection. therefore I added a line -> mapPoint.SpatialReference.WKID = 32640; //but then again got the same spatial reference error.. Then I tried the GEOMETRY SERVICE approach explained in another post in this forum.. Graphic pointGraphic = new Graphic(); pointGraphic.Geometry = mapPoint; pointGraphic.Geometry.SpatialReference = new SpatialReference(32640); IList<Graphic> inG = new List<Graphic>(); inG.Add(pointGraphic); GeometryService svcGeometry = new GeometryService(Service_URL.GEOMETRY_SUPREME); svcGeometry.ProjectCompleted += new EventHandler<GraphicsEventArgs>(svcGeometry_ProjectCompleted); svcGeometry.Failed += new EventHandler<TaskFailedEventArgs>(svcGeometry_Failed); SpatialReference sr = new SpatialReference(); sr.WKID = 32640; svcGeometry.ProjectAsync(inG, sr); void svcGeometry_ProjectCompleted(object sender, GraphicsEventArgs e) { IList<Graphic> results = e.Results; Graphic projectedG = results[0]; //should just be one //**Code here to build new extent at which to center the map. ESRI.ArcGIS.Client.Geometry.MapPoint newpoint = new MapPoint(); newpoint.X = projectedG.Geometry.Extent.XMin; newpoint.Y = projectedG.Geometry.Extent.YMin; latlongTextBlock.Text = string.Format("Lat Long: X = {0}, Y = {1}", Math.Round(newpoint.X, 4), Math.Round(newpoint.Y, 4)); } But with this instead of getting lat longs ...I get the same results like from the following code sample - ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint = Map.ScreenToMap(screenPoint); MapCoordsTextBlock.Text = string.Format("Map Coords: X = {0}, Y = {1}", Math.Round(mapPoint.X, 4), Math.Round(mapPoint.Y, 4)); My Map/datasets etc are in WGS_1984_UTM_Zone_40N Projection. I dont know where my approach is wrong here , please help...thanks in advance 😞
... View more
04-18-2011
04:05 AM
|
0
|
11
|
6440
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-31-2024 01:05 AM | |
| 1 | 08-13-2025 02:51 AM | |
| 1 | 07-29-2024 12:11 AM | |
| 1 | 04-07-2019 11:33 AM | |
| 1 | 04-15-2021 01:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-25-2025
01:46 AM
|