Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 10

Bảng 11-4 cung cấp cho một cái nhìn hợp nhất các bản ghi từ bảng 11-1 và 11-2. Đây là khoảng cùng một định dạng mà Cục Điều tra Dân số Hoa Kỳ cung cấp trong bộ dữ liệu TIGER / Line, chúng tôi sẽ giới thiệu trong phần tiếp theo. Bảng 11-4. Chuỗi thiết bị đầu cuối mạng lưới đường bộ | APPENDIX B GOOGLE MAPS API 327 Method Returns Description showMapBlowup latlng opts Opens an info window at the given GLatLng which contains a close-up view on the map centered on the given GLatLng. closeInfoWindow Closes the current info window. getInfoWindow GInfoWindow Returns the info window object of this map. If no info window exists it is created but not displayed. enableInfoWindow does not affect the result of getInfoWindow . Coordinate Transformations Method Returns Description fromLatLngToDivPixel latlng GPoint Returns the GPoint pixel coordinates of the given GLatLng geographical location relative to the DOM element that contains the draggable map. fromDivPixelToLatLng pixel GLatLng Returns the GLatLng geographical coordinates of the given GPoint pixel coordinates relative to the DOM element that contains the draggable map. fromContainerPixelToLatLng pixel GLatLng Returns the GLatLng geographical coordi- nates of the given GPoint pixel coordinates relative to the DOM element that contains the map on the page. Events Event Arguments Description addmaptype maptype Fired when a map type is added to the map using addMapType . removemaptype maptype Fired when a map type is removed from the map using removeMapType . click overlay latlng Fired when the map is clicked with the mouse. If the click is on a GOverlay object such as a marker the overlay is passed to the event handler through the overlay argument and the overlay s click event is fired. If no overlay is clicked the GLatLng location of the click is passed in the latlng argument. movestart Fired when the map tiles begin to move. This will fire when dragging the map with the mouse in which case a dragstart is also fired or by invoking the movement using one of the GMap methods. move Fired while the map is moving. This event may fire repeatedly as the map moves. moveend Fired when the map stops moving. zoomend oldLevel newLevel Fired when the map reaches anew zoom level. maptypechanged Fired when another .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
114    158    3    22-05-2024
Đã 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.