POST
|
I'm traying to show user's location in a graphics layer, browsing the web I found this: https://davetimmins.wordpress.com/2011/09/20/geolocation-with-the-esri-silverlight-api/ but I don't know where local:LocationLayer comes from. Anybody can help me? I'm using c# and ArcGISAPI for silverlight (v3.3) in VS 2010.
... View more
05-21-2015
02:39 PM
|
0
|
1
|
8049
|
POST
|
Finally i knew how do it. Within the Esri Map add an Esri ElementLayer and define the propertie ID, then add an Image control and set the source and the Esri ElementLayer Envelope. Like this: <esri:Map x:Name="MyMap" WrapAround="True" Extent="-26976187.330, -7196067.417, 13098829.356, 13158690.900" Background="White" Foreground="White" MouseClick="MyMap_MouseClick" ExtentChanged="MyMap_ExtentChanged"> <esri:ElementLayer ID="Background"> <Image Source="/TestPage;component/Images/BackgroundGM1.jpg" esri:ElementLayer.Envelope="-26976187.330, -7196067.417, 13098829.356, 13158690.900"/> </esri:ElementLayer>
... View more
05-07-2013
02:31 PM
|
0
|
0
|
334
|
POST
|
Thanks Dominique! I've solved the problem. Just used the Spatial Reference of the sample http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#BufferQuery
... View more
04-22-2013
02:12 PM
|
0
|
0
|
240
|
POST
|
I'm using the Geometry Service to create Buffers: gmtrySrvcBuffers = new GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); gmtrySrvcBuffers.BufferCompleted += gmtrySrvcBuffers_BufferCompleted; BufferParameters bufferParams = new BufferParameters() { BufferSpatialReference = Variables.Mapa.SpatialReference, OutSpatialReference = Variables.Mapa.SpatialReference, Unit = LinearUnit.Meter }; Note that the spatial references are defined from the base Map. And the MeasureAction to display the radio of a circle: <esri:MeasureAction AreaUnit="SquareMeters" DisplayTotals="True" DistanceUnit="Meters" MapUnits="Meters" MeasureMode="Radius" FillSymbol="{StaticResource DefaultFillSymbol}" TargetName="MyMap" /> in both cases the units are Meters. Once buffer created (with a value of 1000, from a text of a TextBox converted to Double, for the radio), I use the MeasureAction and the result is: [ATTACH=CONFIG]23608[/ATTACH] What I'm doing wrong? why the measures aren't equals?'
... View more
04-18-2013
10:06 AM
|
0
|
2
|
494
|
POST
|
You can use an element layer and set the background image as an element of this layer: sample with a video. Thanks Dominique! I haven't think in that, but can you show me how can I use this? the example show how to put a video, but I need an image, what properties do I have to set and how?
... View more
04-18-2013
09:47 AM
|
0
|
0
|
334
|
POST
|
Is it possible? I mean, I want to establish a common image as my Map Background; so if I turn off all my layers, the background image will be shown.
... View more
04-11-2013
10:48 AM
|
0
|
3
|
2178
|
POST
|
ZoomTo is an asynchronous method whose duration is managed by the ZoomDuration property. If you call twice ZoomTo at the same time, the 2 methods won't be executed sequentially which is likely what you would expect. The way to do it is to subscribe to Map.ExtentChanged event, call ZoomTo, and call again 'ZoomTo' in the extent changed event Handler. Thanks Dominique! it solves my problem.
... View more
03-04-2013
06:19 AM
|
0
|
0
|
255
|
POST
|
You should be able to pass all the features returned from the QueryTask to the Buffer. The code below works for me Thanks Terry well, I used this refference and it works! http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/Geometry_task.htm
... View more
02-25-2013
02:30 PM
|
0
|
0
|
242
|
POST
|
I'm trying to get this effect but still not getting it, I have a data grid with multiples features, when my app initialize it does a zoom to a specific envelope, I store it and when I select one of the features, the app Zoom in to feature, wath I Want is: when I select a feature from the data grid, zoom out to the stored enevlope and then zoom in the feature selected. I've tried this: MapaBase.ZoomDuration = new TimeSpan(0, 0, 3); //I declare the zoom duration to get the effect MapaBase.ZoomTo(coberturaDeEstados.Expand(1.1)); //the principal Envelope stored. MapaBase.ZoomTo(coberturaDeClientesZoom.Expand(1.2)); //the Feature envelope. zoom duration is not respected in zoom out (Principal Envelope) or makes it so fast because only can see the zoom to the feature envelope. some Idea to solve it? Thanks in advance
... View more
02-25-2013
07:12 AM
|
0
|
2
|
490
|
POST
|
I'm working with a Feature Layer and need to define a MapTip in code behind C#, I'm following the sample http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#FeatureLayerMapTips but still not find the way to declare the MapTip in code behind. Is that possible?'
... View more
02-11-2013
10:07 AM
|
0
|
2
|
2058
|
POST
|
ESRI.ArcGIS.Client.Projection Namespace > WebMercator Class : FromGeographic Method ? There's a similar method under the Bing namespace, but it works with MapPoints. thanks, sorry can you be a little more clear on how to use the first option?
... View more
01-31-2013
09:20 AM
|
0
|
0
|
199
|
POST
|
I have a FeatureSet, result from a query, now I'm triying to highlight the results (polygons) in a graphic layer but need to convert the cordinates of them from Geographic to WebMercator. there's a way to do it?
... View more
01-25-2013
12:53 PM
|
0
|
3
|
587
|
POST
|
I'm using GeometryService to create buffers, I did a query over a Feature Layer in a map service and obtained a collection of features, now a need to draw buffers over these points, but apper that GeometryService don't support make more than once at time, have somebody did it? or ther's another way to make it possible? The QueryTask void queryTask_ExecuteCompleted(object sender, QueryEventArgs e) { foreach (Graphic item in e.FeatureSet.Features) { Graphic queryGraphic = new Graphic(); ESRI.ArcGIS.Client.Geometry.MapPoint mapPnt = new MapPoint(item.Geometry.Extent.XMax, item.Geometry.Extent.YMax); queryGraphic.Geometry = ESRI.ArcGIS.Client.Bing.Transform.GeographicToWebMercator(mapPnt); queryGraphic.Geometry.SpatialReference = sReference; BufferParameters bufferParams = new BufferParameters() { BufferSpatialReference = new SpatialReference(102100), OutSpatialReference = MapaGM.SpatialReference, Unit = LinearUnit.Meter, }; bufferParams.Distances.Add(1000); bufferParams.Features.Add(queryGraphic); geometryService.BufferAsync(bufferParams); } } And the GeometryService void geometryService_BufferCompleted(object sender, GraphicsEventArgs e) { Graphic bufferGraphic = new Graphic(); bufferGraphic.Geometry = e.Results[0].Geometry; bufferGraphic.Symbol = LayoutRoot.Resources["BufferSymbol"] as Symbol; bufferGraphic.SetZIndex(1); pointAndBufferGraphicsLayer.Graphics.Add(bufferGraphic); }
... View more
12-27-2012
07:47 AM
|
0
|
2
|
583
|
POST
|
I've solved it, just needed to set tha my query returns Geometry query.ReturnGeometry = true; and so i get the coordinates and can draw a buffer over a point.
... View more
12-27-2012
07:32 AM
|
0
|
0
|
133
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|