Select to view content in your preferred language

Actions, Lod and Alais Names limitations and questions

488
1
03-18-2011 12:06 PM
CameronBlandy
Regular Contributor
Hi,

I have a few questions/comments related to three things in the Silverlight API that are puzzling me at the moment.

1) I notice there is ZoomToVisibleScale action. I like to to be able to create a Feature Layer then zoom to the scale that it is visible at. Can this be done?

2) I notice that in the Lod class there is no property for Scale and ID, only for Resolution. These properties are available when viewing the REST service. They also seem to be available in the Flex API. Any reason to not have these available in the Silverlight API?? Given that 1) is not available I'd like to be able to get the Min Scale of a layer and zoom to the resolution based on the Scale.

3) I like to know how to put alias names in my toolkit maptips.
In the documentation for FeatureLayer.Outfields it says:
Attribute fields to include in the FeatureSet. Fields must exist in the map layer. You must list the actual field names rather than the alias names. Returned fields are also the actual field names. However, you are able to use the alias names when you display the results. For optimal performance, limit the output fields to only those you expect to use. Each query must have access to the Shape and Objectid fields for a layer, but your list of fields does not need to include these two fields. To return all fields, specify the wildcard '*' as the value of this parameter. In this case, the query results include all the field values. Note that the wildcard also implicitly implies returnGeometry=true and setting returnGeometry to false will have no effect. 

but gives no explanation on how to do. Some assistance of this would be grateful.

I hope these matters can be addressed.

Cameron
0 Kudos
1 Reply
LabanNdungo
Deactivated User
Bump! I thought I'd bump up this post since I am actually having the same problem with displaying the alias names on Map tips as a result. could anyone with knowledge on this get back to us please? I'd appreciate it greatly.
0 Kudos