TAILIEUCHUNG - Foundations of ASP.NET AJAX phần 9

Barnes và Noble địa điểm trong khu vực Chicago cùng với địa chỉ, số điện thoại, và các thông tin khác. Kết quả tìm kiếm xuất hiện trong khung bên trái, và số các biểu tượng xuất hiện trên bản đồ. Các biểu tượng được gọi là pushpins, và họ chỉ đơn giản là liệt kê các kết quả tìm kiếm trong khi hiển thị vị trí của họ trên bản đồ. | 206 CHAPTER 9 AJAX-STYLE MAPPING USING THE VIRTUAL EARTH SDK Barnes and Noble locations in the Chicago area along with their addresses phone numbers and other information. The search results appear in the left pane and their numbered icons appear on the map. These icons are called pushpins and they simply enumerate the search results while showing their location on the map. You ll see how to implement them in the Using Pushpins section a bit later in this chapter as well as how to use the same mapping libraries for your own applications. Figure 9-1. Using Microsoft Live Local Programming the VEMap Control VE is an entirely hosted online application and as such doesn t require any extra component on the client to function properly. External script inclusion on top of your page is all that is needed to open the doors to the rich functionality of VE. One exception to this fact is the use of 3D maps. 3D maps are implemented via an ActiveX plug-in that needs to be CHAPTER 9 AJAX-STYLE MAPPING USING THE VIRTUAL EARTH SDK 207 installed on Internet Explorer before you can view any of the 3D maps landscapes. If the plug-in is not installed when the user attempts to switch the map mode to 3D the user will be prompted to download it. With that in mind let s take a look at what is involved in incorporating a basic map in your page and explore some of the key API features of the VE sDk. Creating a Simple Map As mentioned earlier all that s needed to include support for VE maps in your page is the inclusion of an external script file that is hosted on Microsoft servers. VE maps are intrinsically AJAX enabled meaning that no extra effort is required at your end. By simply including the VEMap control in your page users get the full AJAX experience and are able to view and move the map around and change various viewing options without any page refresh. At the time of this writing the current version of the VE SDK is and can be referenced in your page by adding the following .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.