|
POST
|
My version does not have any static symbology in there, since it uses binding expressions to the template. So you new up a new instance of the line symbol, set the color/width properties and lastly set the controltemplate to the one above. It's probably more clear like this:
<ControlTemplate x:Key="offsetLine">
<Path x:Name="Element" Stroke="{Binding Symbol.Color}" StrokeThickness="{Binding Symbol.Width}" >
<Path.RenderTransform>
<TranslateTransform X="5" Y="-5" />
</Path.RenderTransform>
</Path>
</ControlTemplate>
<esri:LineSymbol x:Key="TranslatedLineSymbol1" ControlTemplate="{StaticResource offsetLine}" Width="3" Color="Red" />
<esri:LineSymbol x:Key="TranslatedLineSymbol2" ControlTemplate="{StaticResource offsetLine}" Width="2" Color="Blue" />
... View more
04-23-2010
09:27 AM
|
0
|
0
|
968
|
|
POST
|
For that you should use the service using QueryTask. If not, you have to build your own intersection algorithm.
... View more
04-23-2010
09:19 AM
|
0
|
0
|
887
|
|
POST
|
most of Silverlight's .dlls will run on anything on 2.0 or above Let me repeat: Silverlight does NOT require .NET to run. Not even version 2.0. Remember that Silverlight also runs on Mac and Linux, and there is no .NET version for these platforms. Also: Your webserver does NOT require .NET to host Silverlight applications. ANY webserver running on ANY platform can do this.
... View more
04-22-2010
07:49 AM
|
0
|
0
|
983
|
|
POST
|
Dominique's sample is not flex but silverlight, however both of your samples are not correct. Line and polygon templates requires the root element to be a path element. It also demonstrates how to bind to properties of the symbol for stroke and thickness:
<esri:LineSymbol x:Key="TranslatedLineSymbol">
<esri:LineSymbol.ControlTemplate>
<ControlTemplate>
<Path x:Name="Element" Stroke="{Binding Symbol.Color}" StrokeThickness="{Binding Symbol.Width}" >
<Path.RenderTransform>
<TranslateTransform X="5" Y="-5" />
</Path.RenderTransform>
</Path>
</ControlTemplate>
</esri:LineSymbol.ControlTemplate>
</esri:LineSymbol>
If you need to bind to attributes the expression would be: "{Binding Attributes[SymbolWidthKeyName]}" Note that the above syntax only works with Silverlight 4. If you are still using Silverlight 3, you need to use the DictionaryConverter like it is done in the maptips.
... View more
04-22-2010
07:42 AM
|
0
|
0
|
968
|
|
POST
|
Dan's approach only selected based on the envelope of the geometries, and not the actual geometries themselves, so you risk getting a lot of false-positives. Note that the method says "host coordinates". The method you use for transforming to screen coordinates are relative to the map, not the host. You can get a method for transforming between the two by doing: Point screenPointRelativeToHost = map.TransformToVisual(Application.Current.RootVisual).Transform(screenPointRelativeToMap); The method is based on Silverlight's FindElementsInHostCoordinates which you can read about here: http://msdn.microsoft.com/en-us/library/system.windows.media.visualtreehelper.findelementsinhostcoordinates(VS.95).aspx Your argument for why Dan's method is more efficient is not true, since you will only be looping on the features you selected, where in Dan's you loop on ALL features and perform a manual intersection test. The above method instead uses Silverlight's internal unmanaged efficient mechanism for doing screen-hit testing and will even take the symbology into account (a point is infinitely small in Dan's approach, but in the above it's the size of the symbol, so selections will make more sense to the user). Having said that though, I doubt any of them is of a major concern performance wise.
... View more
04-22-2010
07:34 AM
|
0
|
0
|
887
|
|
POST
|
See http://forums.arcgis.com/threads/2754-Public-Beta-Release
... View more
04-21-2010
08:28 AM
|
0
|
0
|
328
|
|
POST
|
This is a known issue and is fixed in the upcoming beta2.
... View more
04-21-2010
08:20 AM
|
0
|
0
|
546
|
|
POST
|
The GridSplitter is built-in and comes out of the box with Silverlight. You don't need the toolkit for this. http://msdn.microsoft.com/en-us/library/system.windows.controls.gridsplitter(VS.95).aspx
... View more
04-21-2010
08:10 AM
|
0
|
0
|
480
|
|
POST
|
A viewport is always planar (unless your screen is actually shaped like a sphere :-). Why do you require the use of geographic? MapIt will automatically re-project on the fly for you to any spatial reference you desire.
... View more
04-21-2010
08:09 AM
|
0
|
0
|
1084
|
|
POST
|
MagnifyingGlass only works with one tiled layer service. The magnifier is not "really" a magnifier. It's just another map that pans and zooms based on its relative location to the parent map. Because of it's behavior that causes very frequent map rerendering, anything but tiled layers would not perform adequate. Also take a look at the Magnifier class. It uses a different approach that allows you to specify other (and multiple) layertypes.
... View more
04-21-2010
08:05 AM
|
0
|
0
|
392
|
|
POST
|
Go into blend, select the map control, right click it and select to edit a copy of it's template. Note that inside the template there's rectangle called "ZoomBox". You can change its appearance however you like.
... View more
04-19-2010
04:12 PM
|
0
|
0
|
335
|
|
POST
|
Silverlight runs on the client, and therefore you don't need the .NET Framework at all. All you require on the client is the Silverlight 4 runtime. However, if you generate an ASP.NET based website to host your silverlight application, the server will require whatever version that website is running on. Not that you don't need ASP.NET to host this website. All you need to be able to serve out is HTML, JavaScript and the .xap file.
... View more
04-19-2010
04:10 PM
|
0
|
0
|
983
|
|
POST
|
Yes. You will need to publish your GDB/MXD to ArcGIS Server.
... View more
04-19-2010
08:04 AM
|
0
|
0
|
963
|
|
POST
|
Hi I have tried using the MAPIT data service and plug onto a Feature Layer - with no success. I'm curious what problems you were having with this? It's a fairly simple install process to get your MapID SDS REST endpoint running, but there are a few gotchas. MapIt is ESRI's official supported way of serving up raw SQL Server Geometry/Geography to the client APIs (besides ArcGIS Server of course).
... View more
04-17-2010
11:07 AM
|
0
|
0
|
1084
|
|
POST
|
ArcGIS 10 Geometry service is your answer, unless you want to try and write your own union code 🙂 If you know the parcels doesn't overlap, you can simply just lump the rings collections together: foreach(PointCollection points in polygon2.Rings) polygon1.Rings.Add(points);
... View more
04-17-2010
11:00 AM
|
0
|
0
|
350
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | a week ago | |
| 1 | 3 weeks ago | |
| 1 | 4 weeks ago | |
| 1 | 11-04-2025 06:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|