|
POST
|
You get the spatial reference of a map by the read-only 'SpatialReference' property. You can set the spatial reference by setting the map extent (WGS84 = 4326). Example:
<esri:Map>
<esri:Map.Extent>
<esriGeometry:Envelope XMin="-180" YMin="-90" XMax="180" YMax="90" >
<esriGeometry:Envelope.SpatialReference>
<esriGeometry:SpatialReference WKID="4326"/>
</esriGeometry:Envelope.SpatialReference>
</esriGeometry:Envelope>
</esri:Map.Extent>
...
</esri:Map>
... View more
07-14-2010
04:29 AM
|
0
|
0
|
463
|
|
POST
|
At first glance, maptips should be active only when the layer is visible. So instantiating the maptips in the xaml file should work. Did I miss something?
... View more
07-12-2010
07:36 AM
|
0
|
0
|
720
|
|
POST
|
I just tested with the edit tools sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave Adding the code below on a test button gives me a correct result (only one object is visible).
FeatureLayer featureLayer = MyMap.Layers["ThreatAreas"] as FeatureLayer;
featureLayer.ObjectIDs = new int[] { 8649 };
featureLayer.Where = "1=1";
featureLayer.Update();
What could be the difference with your case?
... View more
07-12-2010
07:21 AM
|
0
|
0
|
932
|
|
POST
|
There is nothing out of the box, but did you look at the samples http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList and http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LayerList ?
... View more
07-12-2010
06:07 AM
|
0
|
0
|
406
|
|
POST
|
You are right the map extent is not initialized from the feature layer. You can initialize the map extent in the featurelayer initialized event:
private void FeatureLayer_Initialized(object sender, System.EventArgs e)
{
FeatureLayer featureLayer = sender as FeatureLayer;
MyMap.Extent = featureLayer.LayerInfo.Extent;
}
... View more
07-12-2010
05:57 AM
|
0
|
0
|
807
|
|
POST
|
Could you give more information about what you are trying to do?
... View more
07-12-2010
05:53 AM
|
0
|
0
|
402
|
|
POST
|
Look at sample here: http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16969 and discussion here: http://forums.arcgis.com/threads/5285-Map-can-t-be-dragged-in-the-ListBox
... View more
07-12-2010
05:52 AM
|
0
|
0
|
268
|
|
POST
|
ObjectIDs are working from version 10 of ArcGIS server. Aren't you using a 9.3 map service?
... View more
07-12-2010
05:46 AM
|
0
|
0
|
932
|
|
POST
|
Map.Resolution is giving the map resolution on map units per pixels. From this resolution you can calculate the scale. For example, if your map units are feet and your device is 96 dpi, the map scale is map.Resolution(feet/pixel) * 12(in/foot) * 96(pixel/in).
... View more
07-04-2010
08:16 AM
|
0
|
0
|
410
|
|
POST
|
Very likely you run into a spatial reference issue. You can't display together tiled layers or image layers with different spatial references. (it's ok for dynamic or feature layers because the projection is done on the fly by the server). Bing maps are using web mercator spatial reference (102100), if your image server is not using this one, you won't be able to display both layers.
... View more
07-03-2010
04:42 AM
|
0
|
0
|
661
|
|
POST
|
The code given is this thread is supposed to work with the ESRI Silverlight 2.0 API. Did you try it?
... View more
07-03-2010
04:33 AM
|
0
|
0
|
2045
|
|
POST
|
Looks like you run into an IE limitation : the Url lenght must be less than 2083. Nevertheless the SL API should use a POST request to avoid this issue. So it's strange. Is it working with another browser than IE? Which versions of the API are you using? Are you talking about a query task or about a feature layer with a where clause (in this latest case, it's a known limitation)?
... View more
07-03-2010
04:31 AM
|
0
|
0
|
456
|
|
POST
|
The methods can't be called in object initializer. Need to be called after.
ESRI.ArcGIS.Client.Tasks.IdentifyParameters identifyParams = new IdentifyParameters()
{
Geometry = clickPoint,
MapExtent = map.Extent,
Width = (int)map.ActualWidth,
Height = (int)map.ActualHeight,
LayerOption = LayerOption.visible
};
identifyParams.LayerIds.AddRange(new int[] { 1, 3, 5 });
...
... View more
07-02-2010
04:54 AM
|
0
|
0
|
771
|
|
POST
|
At first glance, your code looks good. So likely the problem is with group layers. Take care that if a group layer is visible all sublayers are automatically visible as well. If you want to see only some sublayers of a group layer, remove the groupLayer ID from the visibleLayerList and add the IDs of the sublayers.
... View more
07-02-2010
01:26 AM
|
0
|
0
|
997
|
|
POST
|
i would like to know how can i set the LayerIds value? Use Add or AddRange method of the LayerIds collection:
identifyParams.LayerIds.Add(1);
identifyParams.LayerIds.Add(3);
identifyParams.LayerIds.Add(5);
or
identifyParams.LayerIds.AddRange(new int[] { 1, 3, 5 });
... View more
07-02-2010
01:20 AM
|
0
|
0
|
771
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM | |
| 1 | 09-07-2021 03:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|