The first day of access to geographic information development, usingSilverlightThe platform isArcGIS 1, 9.3Note:
After referencing the corresponding namespace,XAMLCreateMapObjects, which are divided into different layers.TiledIn the layer, a fewDynamic.
TitledThe layer is cached,DynamicThe layer is read from the database in real time, so the speed will be very slow (Geographic Information Group said ).
Each layer must reference the service address, for example:
Http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer
Through this address, you can see what layers are under the map service, what these layers are, and the boundary coordinates of the map.
You can also set the default display area for a map.ExtendCoordinate attribute. The default value isFit Screen.
You do not have to useGeocodeserver, Which can be obtained in the map control throughMapObjectMouseclickEvent to obtain the coordinates of the current mouse point. Because of the concept of spatial reference (which is not very clear yet), the coordinate points obtained are often not the actual longitude and latitude information, which is different from the map service provided abroad.
The query task can obtain information about the returned region. A Query Task usually needs to specify which layer of the current map to query. You can refer to the slashes and layers in the service address. Some layer queries throw an exception. Generally, the provincial layer supports spatial queries.
Add in demoXAMLCurrently, there are limits in the map, not allXAMLAll objects can be added to the map. OnlyESRISeveral objects in a namespace can be used.
ESRIDevelopment Kit inVs2008Will occasionally die. Currently,Server2003AndVistaThis problem may occur in the operating system. It is unclear why.
Sometimes you need to disableIDEVerifyXAML. OccasionallyRuntimeSerialization exception, not sure how to appear, but inBlendAfter debugging, returnVSYou can run it in. This is required for each debugging.
Summary:
SilverlightOfArcGISThe development results of the development kit are still very good, but many inexplicable errors are annoying. I hope the official version can be improved. However, I don't need to wait.Silverlight 3Come out.