tailieunhanh - Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 6

Ví dụ, nếu bạn đang tò mò về những gì các phương pháp và các thuộc tính một đối tượng JavaScript, chẳng hạn như các đối tượng GMap2, thử này: var map = new GMap2 ( ("bản đồ")); (i trong bản đồ) { (i);} thì đấy! | CHAPTER 7 OPTIMIZING AND SCALING FOR LARGE DATA SETS 171 function force if force return var c1 var c2 - px - px - px - px the position or zoom has changed so reload the background image function retrieve the bounds of the detail area var southWest var northEast determine the pixel position of the corners var swPixels var nePixels send the lat lng as well as x y and zoom to the server var getVars ne sw nePixels swPixels z log the URL for testing getVars set the background image of the div transparent url getVars function init map new GMap2 map 172 CHAPTER 7 OPTIMIZING AND SCALING FOR LARGE DATA SETS new GSmallMapControl new GLatLng centerLatitude centerLongitude startZoom var bounds new Detail bounds init Tip For examples of the mathematical formulas for different maps such as the Mercator projection maps visit MathWorld at http . Looking at Listing 7-9 you can see the Rectangle object renamed to Detail and the addition of a loadBackground method which modifies the background style property of the Detail object function retrieve .

crossorigin="anonymous">
Đã 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.