| | |
| | | // 坐标适配器 |
| | | moralMap.Bounds = function (baiduBounds) { |
| | | if(!!baiduBounds){ |
| | | this.northeastLng = baiduBounds.xl.lng;//东北角经度,大一点 |
| | | this.northeastLat = baiduBounds.xl.lat;//东北角纬度,大一点 |
| | | this.southwestLng = baiduBounds.Ol.lng;//西南角经度坐标,小一点 |
| | | this.southwestLat = baiduBounds.Ol.lat;//西南角经度坐标,小一点 |
| | | this.northeastLng = baiduBounds.getNorthEast().lng;//东北角经度,大一点 |
| | | this.northeastLat = baiduBounds.getNorthEast().lat;//东北角纬度,大一点 |
| | | this.southwestLng = baiduBounds.getSouthWest().lng;//西南角经度坐标,小一点 |
| | | this.southwestLat = baiduBounds.getSouthWest().lat;//西南角经度坐标,小一点 |
| | | }else{ |
| | | this.northeastLng = null;//东北角经度,大一点 |
| | | this.northeastLat = null;//东北角纬度,大一点 |