Silverlight for ArcGIS Development notes

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.