From ff83fced0aa8c1d923f7caf990732b12b1677e71 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Mon, 26 Jan 2015 15:22:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BA=D0=B0=D1=80=D1=82=D1=83=20=D0=B2=20=D1=84=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B0=D0=BC=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/views/point.php | 12 ++++-------- public/js/mapPoint.js | 7 ++++++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ground/views/point.php b/ground/views/point.php index b77cef1..79095c9 100644 --- a/ground/views/point.php +++ b/ground/views/point.php @@ -38,21 +38,17 @@ -
+
img): ?> - - - + - - - + -
+
diff --git a/public/js/mapPoint.js b/public/js/mapPoint.js index a908ccf..51d8138 100644 --- a/public/js/mapPoint.js +++ b/public/js/mapPoint.js @@ -90,7 +90,12 @@ function initPoints() url: "/json/points/", success: function (data) { for (var k in data) { - markers.addLayer(constructPoint(data[k])); + if (k == pointId) { + constructPoint(data[k]); + points[k].addTo(myMap); + } else { + markers.addLayer(constructPoint(data[k])); + } } myMap.addLayer(markers); }