|
POST
|
Can you get it to work if you use the REST endpoint's HTML interface?
... View more
06-09-2010
10:18 AM
|
0
|
0
|
1435
|
|
POST
|
You cannot serialize Symbol, because you cannot serialize the brushes it contains. If you know you are only dealing with for instance SimpleMarkerSymbol that uses SolidColorBrush, you could manually serialize this. Ie create a new object that only contains properties you can serialize:
public class SerializableFeature {
public SerializableFeature(Graphic g) {
Geometry = g.Geometry;
Attributes = g.Attributes;
Color = ((g.Symbol as SimpleMarkerSymbol).Color as SolidColorBrush).Color;
}
public Geometry Geometry { get; set; }
public Color Color { get; set; }
public IDictionary<string,object> Attributes { get; set; }
}
You can then extend this to support other types of symbols (would probably require some more properties)
... View more
06-09-2010
08:25 AM
|
0
|
0
|
2608
|
|
POST
|
Are you saying that the spatial reference of the geometry you use to query is different than that of your map? (although that should technically still work, but its a very rare usecase and most likely the reason why you are seeing something different than you expect).
... View more
06-09-2010
08:10 AM
|
0
|
0
|
1435
|
|
POST
|
Silverlight does, but the ESRI Silverlight API currently doesn't take advantage of it. It's on our roadmap for a future relese. Until then you can use the built-in support yourself and handle the events.
... View more
06-09-2010
08:06 AM
|
0
|
0
|
416
|
|
POST
|
I don't understand what the issue is with VS2010. The Silverlight application doesn't run in VS2010, but runs in the browser. Could you clarify?
... View more
06-08-2010
06:07 PM
|
0
|
0
|
1442
|
|
POST
|
When doing a query for features that you want to overlay on the map, you should ALWAYS set query.OutSpatialReference = MyMap.SpatialReference. To answer your question: "Is there any way to return geometry from a QueryTask that is not in the SpatialReference of the map": Yes. Remember that the QueryTask and the server has no idea what spatial reference your map is in. All it knows to return is the spatial reference you ask it to return it in (if you don't specify any, it will default to the spatial reference of >service< you are querying). Hence the above line of code is VERY important.
... View more
06-08-2010
06:03 PM
|
0
|
0
|
1435
|
|
POST
|
You should set this in the MXD used in the service. There isn't anything like this in the API. You could use a pixelshader on the Layer.Effect property that does this, but the performance isn't always great when using effects on the layers. You can read about one of these here: http://blogs.msdn.com/b/synergist/archive/2009/05/14/alpha-video-with-silverlight-3-pixel-shaders.aspx
... View more
06-08-2010
07:35 AM
|
0
|
0
|
674
|
|
POST
|
Either use the UserToken parameter in the execute for this (will be returned in the event args), or create a new instance for each GeometryService operation you want to execute.
... View more
06-07-2010
03:57 PM
|
0
|
0
|
364
|
|
POST
|
Enter the URL to the service in your browser. You should see the service metadata right there. If it specifies a number at the spatial reference its using WKID. If it's the long string, well then it's WKT. If its showing WKT (very likely), you need to update your MXD to use a common SRID instead.
... View more
06-07-2010
11:01 AM
|
0
|
0
|
1364
|
|
POST
|
You can only create it by parsing in the xaml as a string to XamlReader.Load("<ControlTemplate xmlns=....");
... View more
06-07-2010
08:19 AM
|
0
|
0
|
696
|
|
POST
|
I'm guessing you have OnDemand mode enabled? The doc should mention that this also triggers an update.
... View more
06-07-2010
08:18 AM
|
0
|
0
|
899
|
|
POST
|
Is the server that throws this error running ArcGIS Server v10? (only v10 supports WKT) Is the service where you are getting the WKT from exposing a WKID or a WKT for the spatial reference? You can force the spatial reference or the layer like done in this example: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DefineMapProjection
... View more
06-07-2010
08:15 AM
|
0
|
0
|
1364
|
|
POST
|
The server you are hitting doesn't have a clientaccesspolicy.xml or crossdomain.xml file in place that allows you to download from their server from within Silverlight.
... View more
06-07-2010
08:12 AM
|
0
|
0
|
463
|
|
POST
|
Update is a asyncronous method. In other words you have to give the server a chance to send a response back. Instead wait for the myFeatureLayer.UpdateCompleted event to fire before you do the zoom.
... View more
06-04-2010
04:29 PM
|
0
|
0
|
899
|
|
POST
|
It's not a problem with multiple spatial references. ArcGIS Server can reproject on the fly. You will want to set the spatialreference parameter on the IdentifyParameters and Sref on the Geometry to be that of the map, and not the service's default spatial reference. See the description of the property in the library reference: http://help.arcgis.com/en/webapi/silverlight/apiref/topic1854.html
... View more
06-04-2010
04:27 PM
|
0
|
0
|
737
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 05-11-2026 07:05 AM | |
| 2 | 03-19-2026 06:03 PM | |
| 1 | 03-03-2026 04:41 PM | |
| 1 | 02-26-2018 07:53 AM | |
| 1 | 02-26-2018 07:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|