Cảnh Viên 1
Đường Nguyễn Lương Bằng, Phường Tân Phú, Quận 7, Thành phố Hồ Chí Minh
3.7 – 5.8 tỷ
31 – 36 triệu/m2
Căn hộ cao cấp
Mặt bằng bán lẻ
-
5,220 m2 -
2008 -
Hàng thứ cấp
BĐS mua đi bán lại, không phải của chủ đầu tư.
XEM BĐS
Tổng quan
Căn hộ có hạ tầng điện đã được ngầm hóa từ đầu đi âm tường vào từng hộ dân vừa an toàn trong sử dụng vừa tạo mỹ quan đẹp cho toàn khu Nam Viên. Nguồn điện cung cấp cho đô thị Phú Mỹ Hưng là nguồn nhiệt điện của nhà máy điện Hiệp Phước nên ổn định 24/24, các khu phố còn có máy phát điện dự phòng cho trường hợp mất điện đột xuất.
Căn hộ Cảnh Viên 1 được xây dựng trên diện tích 5220 m2, bao gồm 13 tầng, 116 căn hộ, với 6 kiểu nhà ở khác nhau.
Cảnh Viên 1 có hạ tầng đồng bộ hoàn chỉnh, hệ thống giao thông thuận tiện từ Đại lộ Nguyễn Văn Linh đến khu phố Cảnh Viên với các đường đã tráng nhựa rộng từ 17m đến 21m.
Bất động sản thuộc dự án
- Mua bán
- Cho thuê
Không có thông tin bất động sản nào trong mục này.
Vị trí - tiện ích xung quanh
-
Trường học -
Siêu thị -
Bến tàu xe -
Y tế -
Ngân hàng
Khám phá các địa điểm phổ biến của quận Quận 7, TP Hồ Chí Minh
var _markers = []; var _distance = 2000; var _distances_selected = [];
var _latitude = Number(10.7292919); var _longtitude = Number(106.72155169999996);
var _uluru = { lat: _latitude, lng: _longtitude }; var _map = null; var _directionsDisplay = null; var _directionsService = null; var _circle = null; var _zoom = 14; var _map_loaded = false; var _uiHere; var _platformHereWeGo; var _polylines = [];
var _placeCategoryId = 11; var _placeSubCategoryId = 0; var _listOfPlaces = []; var _categories = []; var _places = [];
var _polygonText = '106.75095367,10.71372795 106.7519455,10.70497799 106.74478912,10.70315361 106.7357254,10.70318127 106.73419952,10.69890213 106.7324295,10.69778347 106.7276001,10.69883537 106.72627258,10.69984531 106.72586823,10.70308113 106.72447205,10.70568085 106.72588348,10.70938778 106.72514343,10.71212482 106.72296906,10.71572876 106.72515869,10.71925735 106.72485352,10.72083378 106.72054291,10.72259331 106.71909332,10.71929073 106.71799469,10.71885395 106.71141815,10.72074413 106.70875549,10.719594 106.70766449,10.72043419 106.70742798,10.72345257 106.70626831,10.72500706 106.70322418,10.72532845 106.69931793,10.72426605 106.69267273,10.72553635 106.69013214,10.72525787 106.69062042,10.73081398 106.69355011,10.73314476 106.69497681,10.73613834 106.69197083,10.74156475 106.69297791,10.74523163 106.69049835,10.74990749 106.69048309,10.75217438 106.69528961,10.75228024 106.70223999,10.75235844 106.70498657,10.75238609 106.70511627,10.75238705 106.70989227,10.75243664 106.71398926,10.75245285 106.71585083,10.7524538 106.71902466,10.75345612 106.72080231,10.75611687 106.7220459,10.75926113 106.72509766,10.75899029 106.73007965,10.7598505 106.73376465,10.76266289 106.73477173,10.76678371 106.73523712,10.774683 106.73681641,10.77679062 106.73961639,10.77755737 106.7432251,10.7768116 106.74765015,10.77366161 106.75190735,10.768116 106.75263977,10.76358604 106.75158691,10.76091099 106.74478149,10.75098228 106.7441864,10.74769306 106.74460602,10.74485397 106.74619293,10.74274158 106.74796295,10.74188519 106.75190735,10.741889 106.75878143,10.74471092 106.76773834,10.74192715 106.75384521,10.72482491 106.75200653,10.7210989 106.75095367,10.71372795';
var _timeOutRouting = null;
function InitOSMap() {
var self = this; if (_map == null) { _map = L.map('map', { center: [20.9837401, 105.79396309999993], zoom: 13, maxZoom: 16, minZoom: 9 });
if (window.innerWidth <= 920) { self._map.scrollWheelZoom.disable(); } L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' }).addTo(_map);
if (_polygonText != '') { AddPolygonToOSMap(_polygonText); } else { MyLocationMarker(); }
initPlace(); DrawPolygonCountry(); } };
function initPlace() {
if (window.PageData.CityId == 1 || window.PageData.CityId == 2) { GetPlaces(); } else { categoryOLDId = '9'; switch (_placeCategoryId) { case 11: { categoryOLDId = '9'; break; } case 5: { categoryOLDId = '13'; break; } case 1: { categoryOLDId = '10'; break; } case 2: { categoryOLDId = '15'; break; } case 15: { categoryOLDId = '2'; break; } } LoadPlaces(categoryOLDId); } }
function MyLocationMarker() { var icon = L.icon({ iconUrl: "https://static.homedy.com/src/images/location-reviews/pin4.svg", iconSize: [35, 45], iconAnchor: [17, 45], popupAnchor: [-2, -45] });
var currentMarker = L.marker([_latitude, _longtitude], {icon: icon}).addTo(_map) .bindPopup("Vị trí của Bất động sản.").openPopup();
currentMarker.on('mouseover', function (e) { this.openPopup(); }); currentMarker.on('mouseout', function (e) { this.closePopup(); });
_map.panTo(new L.LatLng(_latitude, _longtitude)); };
function GetPlaces() { $.ajax({ contentType: "application/json; charset=utf-8", type: "GET", async: true, dataType: 'json', error: function (jqXHR, textStatus, errorThrown) { },
traditional: true, url: 'https://service.homedy.com/place/getplaces', data: { categoryId: _placeCategoryId, cityId: window.PageData.CityId, districtId: window.PageData.DistrictId }, beforeSend: function () { }, complete: function () { }, success: function (json) { if (json !== null) { _listOfPlaces = json; _places = json.places; _categories = json.categories;
if (_places.length > 0) { for (var i = 0; i < _categories.length; i++) { if (_categories[i].Id === 12) { _categories.splice(i, 1); break; } } } if (_categories.length > 0) { var catgs = _categories.filter(function (c) { return c.ParentId !== null }); if (catgs.length > 0) { $('.ul-list').removeClass('no-sub'); _placeSubCategoryId = catgs[0].Id;
SubCategory_Clicked(_placeSubCategoryId, null); } else { $('.ul-list').addClass('no-sub'); CalculatorDistance(); } } } } }); };
function DrawPolygonCountry (){ var data = '[[104.64646955434688,19.64940866304064],[104.6452927,19.6509211],[104.6453257,19.6518753],[104.645324,19.6527207],[104.6456373,19.6535168],[104.6466333,19.6545134],[104.64822131002103,19.654663930063098],[104.66,19.69],[104.65,19.71],[104.68,19.72],[104.71000000000001,19.77],[104.75,19.76],[104.75,19.78],[104.77,19.78],[104.78,19.8],[104.82000000000001,19.79],[104.83,19.8],[104.83,19.93],[104.9,19.98],[104.91,20.03],[104.94,20.06],[104.96000000000001,20.06],[104.97,20.09],[104.93,20.11],[104.91,20.14],[104.85000000000001,20.13],[104.77,20.19],[104.71000000000001,20.19],[104.60000000000001,20.240000000000002],[104.61,20.37],[104.69,20.41],[104.68,20.44],[104.66,20.44],[104.65,20.46],[104.63,20.45],[104.62,20.41],[104.54,20.400000000000002],[104.49000000000001,20.36],[104.41,20.37],[104.39,20.400000000000002],[104.4,20.42],[104.37,20.43],[104.38,20.5],[104.47,20.52],[104.49000000000001,20.56],[104.51,20.55],[104.52,20.59],[104.55,20.62],[104.60000000000001,20.62],[104.62,20.63],[104.63,20.66],[104.59,20.66],[104.56,20.71],[104.53,20.69],[104.49000000000001,20.7],[104.48,20.76],[104.42,20.78],[104.33,20.84],[104.31,20.900000000000002],[104.27,20.91],[104.27,20.89],[104.24000000000001,20.89],[104.23,20.93],[104.12,20.94],[104.12,20.96],[104.07000000000001,20.95],[104.04,20.89],[103.99000000000001,20.900000000000002],[103.95,20.88],[103.89,20.89],[103.86,20.85],[103.83,20.86],[103.82000000000001,20.81],[103.79,20.8],[103.8,20.740000000000002],[103.78,20.72],[103.75,20.72],[103.76,20.67],[103.73,20.650000000000002],[103.67,20.650000000000002],[103.67,20.67],[103.59,20.740000000000002],[103.58,20.73],[103.51,20.740000000000002],[103.47,20.81],[103.45,20.81],[103.45,20.78],[103.39,20.77],[103.29,20.82],[103.28,20.81],[103.23,20.82],[103.22,20.88],[103.18,20.900000000000002],[103.10000000000001,20.89],[103.10000000000001,20.92],[103.07000000000001,20.94],[103.08,20.95],[103.04,21.03],[103.02,21.05],[102.96000000000001,21.06],[102.95,21.07],[102.96000000000001,21.1],[102.93,21.12],[102.93,21.150000000000002],[102.89,21.16],[102.9,21.23],[102.8,21.240000000000002],[102.8,21.27],[102.84,21.31],[102.89,21.31],[102.88,21.37],[102.91,21.42],[102.87,21.41],[102.86,21.44],[102.88,21.490000000000002],[102.9,21.490000000000002],[102.9,21.51],[102.96000000000001,21.56],[102.96000000000001,21.580000000000002],[102.98,21.580000000000002],[102.97,21.61],[102.98,21.72],[102.97,21.73],[102.87,21.69],[102.84,21.740000000000002],[102.75,21.650000000000002],[102.67,21.64],[102.65,21.67],[102.65,21.71],[102.63,21.73],[102.65,21.8],[102.63,21.85],[102.60000000000001,21.87],[102.61,21.91],[102.57000000000001,21.92],[102.48,21.98],[102.49000000000001,22.03],[102.43,22.07],[102.43,22.11],[102.38,22.12],[102.36,22.16],[102.32000000000001,22.16],[102.32000000000001,22.19],[102.27,22.2],[102.26,22.23],[102.23,22.23],[102.22,22.28],[102.17,22.3],[102.17,22.34],[102.15,22.35],[102.15,22.38],[102.13,22.400000000000002],[102.14,22.41],[102.15,22.44],[102.25,22.43],[102.24000000000001,22.47],[102.26,22.47],[102.31,22.57],[102.34,22.57],[102.34,22.6],[102.37,22.6],[102.39,22.63],[102.37,22.69],[102.42,22.7],[102.44,22.76],[102.48,22.79],[102.52,22.79],[102.57000000000001,22.73],[102.62,22.740000000000002],[102.66,22.7],[102.71000000000001,22.71],[102.73,22.68],[102.76,22.68],[102.78,22.650000000000002],[102.8,22.650000000000002],[102.8,22.63],[102.83,22.64],[102.87,22.62],[102.93,22.5],[102.99000000000001,22.490000000000002],[103.02,22.46],[103.07000000000001,22.46],[103.06,22.5],[103.08,22.52],[103.12,22.53],[103.13,22.55],[103.16,22.55],[103.15,22.61],[103.18,22.66],[103.27,22.68],[103.28,22.75],[103.31,22.78],[103.31,22.82],[103.35000000000001,22.82],[103.43,22.78],[103.45,22.76],[103.44,22.71],[103.47,22.69],[103.47,22.66],[103.52,22.61],[103.57000000000001,22.66],[103.55,22.71],[103.59,22.740000000000002],[103.63,22.81],[103.65,22.81],[103.69,22.76],[103.71000000000001,22.76],[103.75,22.72],[103.75,22.7],[103.79,22.69],[103.83,22.62],[103.85000000000001,22.62],[103.85000000000001,22.6],[103.87,22.6],[103.96000000000001,22.52],[103.98,22.52],[104,22.53],[104,22.6],[104.02,22.62],[104.03,22.67],[104.02,22.71],[104.11,22.82],[104.27,22.85],[104.28,22.84],[104.27,22.76],[104.3,22.740000000000002],[104.34,22.740000000000002],[104.36,22.7],[104.38,22.7],[104.42,22.75],[104.46000000000001,22.76],[104.51,22.8],[104.53,22.84],[104.56,22.84],[104.57000000000001,22.87],[104.59,22.87],[104.60000000000001,22.85],[104.65,22.85],[104.67,22.830000000000002],[104.73,22.830000000000002],[104.72,22.86],[104.76,22.88],[104.77,22.91],[104.85000000000001,22.95],[104.8,23.05],[104.8,23.13],[104.87,23.14],[104.87,23.17],[104.89,23.19],[104.92,23.19],[104.94,23.17],[104.96000000000001,23.21],[104.99000000000001,23.21],[105.08,23.28],[105.11,23.26],[105.15,23.27],[105.16,23.3],[105.22,23.28],[105.24000000000001,23.3],[105.24000000000001,23.34],[105.28,23.35],[105.3,23.39],[105.33,23.400000000000002],[105.36,23.38],[105.36,23.34],[105.38,23.32],[105.4,23.32],[105.41,23.3],[105.45,23.31],[105.52,23.2],[105.56,23.2],[105.58,23.17],[105.58,23.080000000000002],[105.66,23.09],[105.68,23.07],[105.72,23.080000000000002],[105.74000000000001,23.04],[105.78,23.04],[105.81,23],[105.83,23.01],[105.87,22.97],[105.86,22.95],[105.88,22.94],[105.92,22.96],[105.99000000000001,22.95],[105.99000000000001,23],[106.15,23.01],[106.17,22.990000000000002],[106.22,22.990000000000002],[106.25,22.96],[106.25,22.94],[106.27,22.93],[106.27,22.88],[106.3242050351957,22.87322437060054],[106.3243685,22.8734473],[106.3252567,22.8739562],[106.3271709,22.873645],[106.3277559,22.873585],[106.3282759,22.873404],[106.32856174678753,22.87267978165156],[106.35000000000001,22.87],[106.36,22.89],[106.49000000000001,22.92],[106.5,22.96],[106.53,22.96],[106.56,22.93],[106.61,22.94],[106.65,22.88],[106.66,22.900000000000002],[106.71000000000001,22.900000000000002],[106.73,22.86],[106.79,22.82],[106.83,22.830000000000002],[106.85000000000001,22.8],[106.82000000000001,22.76],[106.78,22.740000000000002],[106.79,22.7],[106.77,22.7],[106.77,22.67],[106.74000000000001,22.650000000000002],[106.73,22.62],[106.74000000000001,22.59],[106.72,22.57],[106.64,22.57],[106.62,22.59],[106.61,22.54],[106.59,22.52],[106.59,22.46],[106.57000000000001,22.46],[106.58,22.41],[106.60000000000001,22.400000000000002],[106.58,22.35],[106.66,22.35],[106.68,22.29],[106.7,22.29],[106.71000000000001,22.2],[106.68,22.18],[106.72,22.16],[106.7,22.14],[106.7,22.12],[106.72,22.11],[106.72,22.02],[106.69,21.990000000000002],[106.71000000000001,21.98],[106.73,22.02],[106.78,22.02],[106.81,22],[106.81,21.98],[106.83365973091867,21.98215088462897],[106.8342894,21.9826573],[106.8349063,21.9836373],[106.8361992,21.9835776],[106.8380713,21.9835925],[106.8390477,21.9838661],[106.8397987,21.9840949],[106.840598,21.983299],[106.84110608480053,21.982827825890958],[106.92,21.990000000000002],[106.93,21.95],[106.96000000000001,21.93],[106.98,21.96],[107.06,21.94],[107.07000000000001,21.88],[107.02,21.86],[107.02,21.84],[107.04,21.82],[107.09,21.82],[107.15,21.77],[107.19,21.76],[107.21000000000001,21.72],[107.31,21.75],[107.37,21.67],[107.37,21.61],[107.44,21.67],[107.49000000000001,21.67],[107.5,21.62],[107.52,21.6],[107.54,21.6],[107.57000000000001,21.63],[107.59,21.63],[107.60000000000001,21.61],[107.69,21.62],[107.73,21.650000000000002],[107.77,21.650000000000002],[107.78,21.67],[107.88,21.66],[107.9,21.6],[107.93,21.6],[107.96000000000001,21.55],[108.04,21.56],[108.10000000000001,21.5],[108.14,21.28],[108.22,21.22],[108.23,21.1],[108.21000000000001,21.07],[107.97,20.82],[107.84,20.75],[107.72,20.73],[107.66,20.62],[107.58,20.54],[107.29,20.41],[107.23,20.400000000000002],[107.03,20.42],[106.95,20.490000000000002],[106.85000000000001,20.46],[106.85000000000001,20.31],[106.82000000000001,20.18],[106.78,20.09],[106.72,20.04],[106.63,20],[106.47,19.98],[106.27,19.740000000000002],[106.21000000000001,19.7],[106.13,19.68],[106.06,19.580000000000002],[106.06,19.56],[106.10000000000001,19.53],[106.15,19.45],[106.15,19.28],[106.10000000000001,19.2],[106.04,19.14],[105.96000000000001,19.11],[105.94,19.02],[106.05,19],[106.11,18.96],[106.18,18.86],[106.18,18.73],[106.16,18.68],[106.10000000000001,18.62],[106.16,18.52],[106.22,18.52],[106.27,18.5],[106.35000000000001,18.43],[106.68,18.23],[106.87,18.02],[106.89,17.97],[106.88,17.830000000000002],[106.81,17.740000000000002],[106.74000000000001,17.71],[106.9,17.5],[107.17,17.3],[107.25,17.36],[107.32000000000001,17.38],[107.44,17.36],[107.5,17.32],[109.35000000000001,15.48],[109.37,15.41],[109.56,13.93],[109.67,12.92],[109.68,12.6],[109.29,9.9],[109.25,9.83],[109.19,9.78],[106.7,8.43],[104.83,8.17],[104.79,8.18],[103.31,9.09],[103.13,9.32],[103.11,9.48],[103.85000000000001,10.01],[103.92,10.16],[103.92,10.19],[103.88,10.26],[103.82000000000001,10.28],[103.79,10.370000000000001],[103.83,10.41],[103.91,10.4],[103.92,10.44],[103.96000000000001,10.49],[104.02,10.49],[104.10000000000001,10.43],[104.12,10.39],[104.13,10.25],[104.22,10.28],[104.45,10.44],[104.5,10.43],[104.52,10.46],[104.55,10.47],[104.55,10.5],[104.58,10.51],[104.58,10.540000000000001],[104.7,10.55],[104.75,10.53],[104.87,10.53],[104.95,10.65],[105.09,10.72],[105.08,10.76],[105.05,10.78],[105.04,10.85],[105.02,10.870000000000001],[105.03,10.92],[105.08,10.97],[105.13,10.97],[105.12,10.93],[105.21000000000001,10.92],[105.23,10.9],[105.27,10.91],[105.31,10.88],[105.35000000000001,10.88],[105.35000000000001,10.9],[105.41,10.950000000000001],[105.42,10.98],[105.54,10.96],[105.66,10.99],[105.73,11.040000000000001],[105.79,11.040000000000001],[105.81,10.98],[105.87,10.92],[105.86,10.870000000000001],[105.87,10.86],[105.92,10.85],[105.92,10.870000000000001],[105.94,10.88],[105.93,10.92],[105.95,10.93],[106.04,10.84],[106.08,10.82],[106.16398043147208,10.811601956852792],[106.164114,10.811618],[106.165416,10.811677],[106.16569209708629,10.811430790291372],[106.18,10.81],[106.18,10.84],[106.13,10.91],[106.14,10.93],[106.13,10.98],[106.15048363636365,10.98],[106.151058,10.980468],[106.152158,10.981364],[106.153162,10.98235],[106.153967,10.98286],[106.15436,10.982395],[106.155189,10.981686],[106.15563,10.981142],[106.156081,10.98069],[106.156766,10.98015],[106.15699062686568,10.98],[106.19,10.98],[106.17,11.07],[106.14,11.09],[106.12,11.08],[106.12,11.06],[106.10000000000001,11.06],[106.09,11.09],[106.06,11.09],[106.05,11.120000000000001],[106.01,11.13],[106.01,11.18],[105.94,11.19],[105.9,11.23],[105.9,11.28],[105.85000000000001,11.28],[105.87,11.33],[105.86,11.41],[105.89,11.44],[105.86,11.46],[105.87,11.540000000000001],[105.8,11.57],[105.8,11.63],[105.83,11.63],[105.84,11.67],[105.88,11.69],[105.95,11.65],[105.97,11.67],[105.97,11.700000000000001],[106.01,11.73],[106,11.77],[106.03,11.790000000000001],[106.05,11.78],[106.07000000000001,11.790000000000001],[106.11,11.75],[106.2,11.76],[106.21000000000001,11.74],[106.26,11.74],[106.3,11.69],[106.39,11.71],[106.44,11.68],[106.4,11.77],[106.43,11.81],[106.43,11.870000000000001],[106.45,11.88],[106.4,11.98],[106.43,11.98],[106.44,12],[106.48,11.98],[106.50999752845529,11.98],[106.5100399,11.980117],[106.5114519,11.980252],[106.51194455290806,11.98],[106.51453640415514,11.98],[106.5151179,11.98008],[106.5162019,11.980352],[106.5173209,11.98052],[106.5183829,11.980664],[106.5197469,11.980765],[106.5225759,11.980139],[106.52282591446051,11.98],[106.64,11.98],[106.65,12],[106.72,11.98],[106.78,12.09],[106.92,12.07],[106.98,12.09],[107,12.13],[107.04,12.14],[107.06,12.19],[107.13,12.24],[107.14,12.280000000000001],[107.18,12.290000000000001],[107.19,12.31],[107.24000000000001,12.31],[107.27,12.34],[107.36,12.34],[107.39,12.31],[107.4,12.27],[107.43,12.26],[107.43,12.290000000000001],[107.46000000000001,12.3],[107.47,12.33],[107.5,12.33],[107.52,12.36],[107.54,12.36],[107.53,12.42],[107.57000000000001,12.48],[107.55,12.51],[107.55,12.530000000000001],[107.57000000000001,12.540000000000001],[107.55,12.8],[107.5,12.85],[107.48,12.89],[107.49000000000001,12.92],[107.47,12.950000000000001],[107.49000000000001,12.98],[107.48,13.030000000000001],[107.62,13.370000000000001],[107.61,13.52],[107.56,13.620000000000001],[107.53,13.74],[107.44,13.790000000000001],[107.46000000000001,13.84],[107.46000000000001,13.86],[107.44,13.870000000000001],[107.46000000000001,13.89],[107.46000000000001,13.91],[107.44,13.92],[107.45,13.96],[107.43,13.99],[107.38,13.98],[107.35000000000001,14.01],[107.36,14.08],[107.33,14.1],[107.33,14.14],[107.39,14.22],[107.4,14.290000000000001],[107.38,14.33],[107.4,14.370000000000001],[107.43,14.39],[107.44,14.43],[107.48,14.42],[107.5,14.52],[107.52,14.540000000000001],[107.51,14.6],[107.54,14.620000000000001],[107.55,14.71],[107.51,14.72],[107.53,14.75],[107.52,14.77],[107.5,14.77],[107.5,14.8],[107.58,14.88],[107.54,14.89],[107.47,14.950000000000001],[107.46000000000001,15.030000000000001],[107.5,15.030000000000001],[107.53,15.06],[107.58,15.040000000000001],[107.58,15.06],[107.60000000000001,15.06],[107.59,15.1],[107.61,15.11],[107.61,15.127187004275616],[107.609313,15.1283683],[107.6085163,15.1296931],[107.6083801,15.1311752],[107.6082104,15.1317749],[107.6076643,15.132841],[107.6080007,15.1330825],[107.609498,15.1323719],[107.61,15.131997361618618],[107.61,15.16],[107.59,15.19],[107.57000000000001,15.19],[107.57000000000001,15.21],[107.61,15.22],[107.6159921372474,15.27992137247406],[107.6159853,15.2799493],[107.6159788,15.2800154],[107.61601103898734,15.28011038987342],[107.61627393003496,15.282739300349688],[107.6162297,15.2828515],[107.6160329,15.2831852],[107.615741,15.2835058],[107.6157011,15.2835912],[107.6157216,15.2836641],[107.6157559,15.2837241],[107.6159522,15.2838059],[107.6159852,15.2838389],[107.616,15.2839101],[107.6159916,15.2839708],[107.6159659,15.2840221],[107.6155532,15.2857376],[107.6153567,15.2871383],[107.6155825,15.2880993],[107.6163095,15.2902261],[107.6166141,15.2912618],[107.61717589119104,15.291758911910403],[107.62,15.32],[107.60000000000001,15.33],[107.59,15.370000000000001],[107.60000000000001,15.4],[107.58,15.4],[107.57000000000001,15.38],[107.51,15.4],[107.5,15.47],[107.47,15.47],[107.47,15.49],[107.38,15.48],[107.36,15.55],[107.33,15.57],[107.34,15.6],[107.32000000000001,15.620000000000001],[107.27,15.620000000000001],[107.27,15.64],[107.25,15.65],[107.26,15.71],[107.24000000000001,15.73],[107.2,15.73],[107.22,15.790000000000001],[107.2,15.83],[107.22,15.85],[107.25,15.85],[107.26,15.870000000000001],[107.29,15.870000000000001],[107.33,15.9],[107.39,15.9],[107.41,15.92],[107.43,15.99],[107.45,16.01],[107.44,16.07],[107.41,16.07],[107.4,16.05],[107.32000000000001,16.05],[107.29,16.080000000000002],[107.29,16.1],[107.26,16.11],[107.24000000000001,16.14],[107.19,16.13],[107.17,16.16],[107.15,16.16],[107.13,16.21],[107.14,16.27],[107.12,16.27],[107.09,16.3],[106.97,16.29],[106.96000000000001,16.35],[106.91,16.36],[106.88,16.42],[106.86,16.42],[106.88,16.46],[106.88,16.468324316142507],[106.8784986,16.4684348],[106.8778722,16.4687563],[106.8773709,16.4693197],[106.877025,16.4699487],[106.876796,16.4704016],[106.8766608,16.4715018],[106.8766728,16.4727416],[106.8766291,16.474292],[106.8766109,16.4754194],[106.8767627,16.4760381],[106.8770293,16.4764584],[106.8775881,16.4769043],[106.8785863,16.4775435],[106.8790565,16.4778775],[106.8791465,16.4781301],[106.8790964,16.4783147],[106.8790619,16.4784409],[106.8787761,16.4790635],[106.8783492,16.4801663],[106.8778962,16.4816077],[106.8778448,16.4823409],[106.8778497,16.4828481],[106.878176,16.4834087],[106.878592,16.4841658],[106.879065,16.4848098],[106.88,16.485585165853657],[106.88,16.51],[106.85000000000001,16.54],[106.81,16.45],[106.78,16.46],[106.79,16.44],[106.75,16.4],[106.73,16.4],[106.65,16.46],[106.64,16.55],[106.66,16.57],[106.65,16.580000000000002],[106.62,16.57],[106.61,16.6],[106.58,16.59],[106.57000000000001,16.63],[106.55,16.64],[106.56,16.66],[106.54,16.69],[106.54,16.86],[106.5,16.89],[106.52,16.94],[106.54,16.93],[106.54,16.97],[106.5,16.96],[106.47,16.97],[106.46000000000001,16.990000000000002],[106.43,16.990000000000002],[106.39,17.05],[106.4,17.080000000000002],[106.29,17.2],[106.29,17.26],[106.25,17.23],[106.16,17.3],[106.14,17.3],[106.13,17.330000000000002],[106.07000000000001,17.36],[105.86,17.62],[105.83,17.62],[105.79,17.66],[105.74000000000001,17.66],[105.74000000000001,17.71],[105.72,17.71],[105.72,17.740000000000002],[105.69,17.75],[105.67,17.78],[105.67,17.84],[105.60000000000001,17.87],[105.63,17.990000000000002],[105.59,17.990000000000002],[105.57000000000001,18.01],[105.57000000000001,18.06],[105.53,18.07],[105.53,18.11],[105.5,18.11],[105.5,18.17],[105.48,18.17],[105.48,18.19],[105.45,18.19],[105.45,18.17],[105.43,18.17],[105.41,18.14],[105.36,18.150000000000002],[105.31,18.19],[105.32000000000001,18.22],[105.29,18.23],[105.29,18.25],[105.26,18.240000000000002],[105.24000000000001,18.29],[105.21000000000001,18.29],[105.17,18.32],[105.18,18.330000000000002],[105.17,18.38],[105.14,18.38],[105.14,18.400000000000002],[105.11,18.41],[105.09,18.45],[105.12,18.580000000000002],[105.15,18.62],[105.18,18.62],[105.18,18.650000000000002],[105.16,18.650000000000002],[105.13,18.68],[105.13,18.7],[105.04,18.7],[105.04,18.72],[105.02,18.73],[104.93,18.73],[104.92,18.78],[104.86,18.76],[104.79,18.77],[104.78,18.79],[104.75,18.78],[104.73,18.79],[104.73,18.81],[104.66,18.830000000000002],[104.66,18.85],[104.63,18.86],[104.62,18.88],[104.57000000000001,18.89],[104.56,18.93],[104.54,18.94],[104.54,18.97],[104.51,18.97],[104.5,18.990000000000002],[104.44,18.97],[104.39,19.03],[104.39,19.05],[104.3,19.080000000000002],[104.29,19.11],[104.21000000000001,19.11],[104.2,19.12],[104.21000000000001,19.150000000000002],[104.19,19.150000000000002],[104.18,19.19],[104.11,19.2],[104.07000000000001,19.240000000000002],[103.99000000000001,19.22],[103.98,19.240000000000002],[103.91,19.28],[103.91,19.3],[103.89,19.29],[103.87,19.3],[103.87,19.330000000000002],[103.93,19.35],[103.97,19.41],[103.99000000000001,19.42],[104.01,19.41],[104.02,19.43],[104.05,19.44],[104.06,19.43],[104.05,19.46],[104.07000000000001,19.47],[104.10000000000001,19.53],[104.09,19.55],[104.10000000000001,19.57],[104.08,19.57],[104.05,19.6],[104.06,19.69],[104.14,19.67],[104.16,19.71],[104.19,19.7],[104.22,19.72],[104.29,19.7],[104.31,19.71],[104.33,19.69],[104.37,19.71],[104.37,19.7],[104.43,19.71],[104.43,19.68],[104.46000000000001,19.68],[104.46000000000001,19.66],[104.47,19.67],[104.51,19.66],[104.52,19.63],[104.57000000000001,19.63],[104.61,19.650000000000002],[104.64,19.63],[104.64646955434688,19.64940866304064]]'; //console.log(JSON.parse(jsonPolygon)); var jsonPolygon = JSON.parse(data);
var arrayforPolygon = []; $.each(jsonPolygon, function (index, item) { arrayforPolygon.push({ lat: parseFloat(item[1]), lng: parseFloat(item[0]) }); });
//var _polygon = L.polygon(arrayforPolygon, { fillOpacity: 0 }); //_map.fitBounds(_polygon.getBounds()); L.Mask = L.Polygon.extend({ options: { stroke: true, strokeWeight: 1.5, strokeOpacity: 0.2, fillOpacity: 1, fillColor: '#e8e8e8', clickable: true,
outerBounds: new L.LatLngBounds([-90, -360], [90, 360]) },
initialize: function (latLngs, options) {
var outerBoundsLatLngs = [ this.options.outerBounds.getSouthWest(), this.options.outerBounds.getNorthWest(), this.options.outerBounds.getNorthEast(), this.options.outerBounds.getSouthEast() ]; L.Polygon.prototype.initialize.call(this, [outerBoundsLatLngs, latLngs], options); },
}); var mask = new L.Mask(arrayforPolygon); mask.addTo(self._map);
};
function AddCircle() { var circle = L.circle([_latitude, _longtitude], { radius: 5000 }).addTo(_map); };
function AddMakerToOSMap (data) { var imageUrl = ''; var alias = ''; switch (_placeCategoryId) { case 11: { alias = 'truong-hoc'; imageUrl = 'https://static.homedy.com/src/images/icon/map/truonghoc4.svg'; break; } case 5: { alias = 'sieu-thi'; imageUrl = 'https://static.homedy.com/src/images/icon/map/sieuthi4.svg'; break; } case 1: { alias = 'ben-xe'; imageUrl = 'https://static.homedy.com/src/images/icon/map/benxe4.svg'; break; } case 2: { alias = 'y-te'; imageUrl = 'https://static.homedy.com/src/images/icon/map/yte4.svg'; break; } case 15: { alias = 'ngan-hang'; imageUrl = 'https://static.homedy.com/src/images/icon/map/nganhang4.svg'; break; } }
try { var icon = L.icon({ iconUrl: imageUrl, iconSize: [25, 35], iconAnchor: [12, 35], popupAnchor: [-2, -35] });
var position = [parseFloat(data.Latitude), parseFloat(data.Longitude)]; var marker = L.marker(position, { icon: icon }).addTo(_map) .bindPopup("
" + data.Name + "
");
marker.on('click', function (e) {
DrawRouting({ lat: _latitude, lng: _longtitude }, { lat: data.Latitude, lng: data.Longitude });
});
_markers.push({ marker: marker, id: data.Id });
} catch (err) { console.warn(err) }
};
function AddMakerToOSMapOLD (data) {
var imageUrl = '';
var alias = '';
switch (_placeCategoryId) {
case 11: {
alias = 'truong-hoc';
imageUrl = 'https://static.homedy.com/src/images/icon/map/truonghoc4.svg';
break;
}
case 5: {
alias = 'sieu-thi';
imageUrl = 'https://static.homedy.com/src/images/icon/map/sieuthi4.svg';
break;
}
case 1: {
alias = 'ben-xe';
imageUrl = 'https://static.homedy.com/src/images/icon/map/benxe4.svg';
break;
}
case 2: {
alias = 'y-te';
imageUrl = 'https://static.homedy.com/src/images/icon/map/yte4.svg';
break;
}
case 15: {
alias = 'ngan-hang';
imageUrl = 'https://static.homedy.com/src/images/icon/map/nganhang4.svg';
break;
}
}
try {
var icon = L.icon({
iconUrl: imageUrl,
iconSize: [25, 35],
iconAnchor: [12, 35],
popupAnchor: [-2, -35]
});
var position = [parseFloat(data.lat), parseFloat(data.long)];
var marker = L.marker(position, { icon: icon }).addTo(_map)
.bindPopup("
" + data.title + "
");
marker.on('click', function (e) {
DrawRouting({ lat: _latitude, lng: _longtitude }, { lat: data.lat, lng: data.long });
});
_markers.push({ marker: marker, id: data.id });
} catch (err) { console.warn(err) }
};
function AddPolygonToOSMap (data) {
var self = this;
var _position = "";
if (data !== null && data !== undefined) {
if (data.indexOf('@') > 0) {
var arrPolygon = data.split('@');
var maxlength = 0;
$.each(arrPolygon, function (index, item) {
if (item.length > maxlength) {
_position = item;
maxlength = item.length;
}
});
} else {
_position = data;
}
}
var res = _position.split(" ");
var arrayforPolygon = [];
$.each(res, function (key, item) {
var position = item.split(",");
arrayforPolygon.push([parseFloat(position[1]), parseFloat(position[0])]);
});
var _polygon = L.polygon(arrayforPolygon, { fillOpacity: 0.1 });
self.Polygon = _polygon;
self._map.fitBounds(_polygon.getBounds());
MyLocationMarker();
};
function Category_Clicked (id, name, e) {
var self = this;
_placeCategoryId = id;
_placeSubCategoryId = 0;
if (_markers.length > 0) {
$.each(_markers, function (index, item) {
_map.removeLayer(item.marker);
});
}
_markers = [];
_places = [];
_categories = [];
$('.tab-item').removeClass('active');
e.className = "tab-item active";
if (_routing !== null) {
_map.removeControl(_routing);
_routing = null;
}
initPlace();
};
function SubCategory_Clicked(id, e) {
if (e !== null) {
$('#list_category li').removeClass('active');
e.className = 'active';
}
if (id > 0) {
_placeSubCategoryId = id;
if (_routing !== null) {
_map.removeControl(_routing);
_routing = null;
}
if (_markers.length > 0) {
$.each(_markers, function (index, item) {
_map.removeLayer(item.marker);
});
}
_markers = [];
_places = [];
var places = _listOfPlaces.places.filter(function (p) { return p.CategoryId === _placeSubCategoryId });
if (places !== null && places !== undefined && places.length > 0) {
$.each(places, function (index, item) {
_places = places;
});
}
CalculatorDistance();
}
};
function CalculatorDistance() {
var html = '';
$.each(_categories, function (index, item) {
if (item.ParentId !== undefined && item.ParentId !== null) {
var active = item.Id === _placeSubCategoryId ? 'active' : '';
html += '
';
}
});
$('#list_category').html(html);
$.each(_places, function (index, item) {
var distance = Distance(_latitude, _longtitude, parseFloat(item.Latitude), parseFloat(item.Longitude), 'K');
var time = distance / 20;
item.Distance = distance;
if (item.Distance >= 1) {
item.DistanceStr = parseFloat(distance).toFixed(2) + " km";
} else {
item.DistanceStr = parseFloat(distance * 1000).toFixed(0) + " m";
}
item.Time = Math.round(time * 60);
});
_places.sort(dynamicSort("Distance"));
_places.push({ id: 9999 });
_places.splice(-1, 1);
html = '';
$.each(_places, function (index, item) {
if (index '
html += '
'
html += '
html += '
'
html += '
'
html += '
'
html += '
html += '
'
html += '
'
html += '
'
html += ''
}
});
if (html != '') {
$('.ul-list').fadeIn();
$('#list_place').html(html);
$(".ul-list").mCustomScrollbar({
theme: "minimal-dark"
});
}else
$('.ul-list').fadeOut();
};
function CalculatorDistanceOLD() {
var html = '';
$.each(_places, function (index, item) {
var distance = Distance(_latitude, _longtitude, parseFloat(item.lat), parseFloat(item.long), 'K');
var time = distance / 20;
item.Distance = distance;
if (item.Distance >= 1) {
item.DistanceStr = parseFloat(distance).toFixed(2) + " km";
} else {
item.DistanceStr = parseFloat(distance * 1000).toFixed(0) + " m";
}
item.Time = Math.round(time * 60);
});
_places.sort(dynamicSort("Distance"));
_places.push({ id: 9999 });
_places.splice(-1, 1);
html = '';
$.each(_places, function (index, item) {
if (index '
html += '
'
html += '
html += '
'
html += '
'
html += '
'
html += '
html += '
'
html += '
'
html += '
'
html += ''
}
});
if (html != '') {
$('.ul-list').fadeIn();
$('#list_place').html(html);
$(".ul-list").mCustomScrollbar({
theme: "minimal-dark"
});
}else
$('.ul-list').fadeOut();
};
function ShowOSMMarker(id) {
var marker = _markers.filter(function (m) { return m.id == id })[0].marker;
marker.openPopup();
};
function Distance(lat1, lon1, lat2, lon2, unit) {
if ((lat1 === lat2) && (lon1 === lon2)) {
return 0;
}
else {
var radlat1 = Math.PI * lat1 / 180;
var radlat2 = Math.PI * lat2 / 180;
var theta = lon1 - lon2;
var radtheta = Math.PI * theta / 180;
var dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);
if (dist > 1) {
dist = 1;
}
dist = Math.acos(dist);
dist = dist * 180 / Math.PI;
dist = dist * 60 * 1.1515;
if (unit === "K") { dist = dist * 1.609344; }
if (unit === "N") { dist = dist * 0.8684; }
return dist;
}
};
function dynamicSort (property) {
var sortOrder = 1;
if (property[0] === "-") {
sortOrder = -1;
property = property.substr(1);
}
return function (a, b) {
var result = (a[property] b[property]) ? 1 : 0;
return result * sortOrder;
};
};
function LoadPlaces(categoryId) {
$.ajax({
type: "GET",
url: "https://service.homedy.com/Place/Search",
dataType: "json",
contentType: "application/json",
data: { CategoryId: categoryId, Latitude: _latitude, Longitude: _longtitude, Distance: _distance, PageIndex: 0, PageSize: 100 },
success: function (json) {
if (json !== null && json !== undefined) {
if (json.data.length > 0) {
_places = json.data;
$('.ul-list').addClass('no-sub');
}
CalculatorDistanceOLD();
}
},
error: function (error) {
console.log(error);
}
});
}
var _routing = null;
function DrawRouting(positionA, positionB) {
if (_timeOutRouting !== null) {
Snackbar("Thao tác quá nhanh");
} else {
if (_routing !== null) {
_map.removeControl(_routing);
_routing = null;
}
_routing = L.Routing.control({
waypoints: [
L.latLng(positionA.lat, positionA.lng),
L.latLng(positionB.lat, positionB.lng)
],
createMarker: function (i, start, n) {
var marker_icon = null
if (i == 0) {
marker_icon = L.divIcon({ className: 'bus-top-icon brown', html: "A", popupAnchor: [5, -20] });
} else if (i == n - 1) {
marker_icon = L.divIcon({ className: 'bus-top-icon brown', html: "B", popupAnchor: [5, -20] });
}
var marker = L.marker(start.latLng, {
draggable: true,
icon: marker_icon
})
return null;
},
routeWhileDragging: true
}).addTo(_map);
_timeOutRouting = setTimeout(function () {
_timeOutRouting = null;
},1000)
}
}
function Snackbar(content) {
var x = document.getElementById("snackbar");
x.className = "show";
x.innerHTML = content;
setTimeout(function () { x.className = x.className.replace("show", ""); }, 3000);
}
function IsMobile(){
if (window.innerWidth = distance) {
if (!_map_loaded) {
_map_loaded = true;
InitOSMap();
}
}
});
var isProject = false;
if (isProject) {
if (!_map_loaded) {
_map_loaded = true;
InitOSMap();
}
}
}
Tiện ích dự án