diff --git a/ground/views/indexTemplate.php b/ground/views/indexTemplate.php
index a064b4e..644287b 100644
--- a/ground/views/indexTemplate.php
+++ b/ground/views/indexTemplate.php
@@ -18,7 +18,7 @@
-
+
|
diff --git a/public/js/main.js b/public/js/main.js
index 3f4ef62..6e7a2a5 100644
--- a/public/js/main.js
+++ b/public/js/main.js
@@ -23,29 +23,32 @@ function init() {
myMap.events.add('click', function (e) {
if (!myMap.balloon.isOpen()) {
- var coords = e.get('coordPosition');
- myMap.balloon.open(coords, {
- contentHeader:'Добавление точки',
- contentBody:
- ''
- });
+ '' +
+ '' +
+ '' +
+ ''
+ });
+ }
}
else {
myMap.balloon.close();
@@ -147,3 +150,12 @@ function showMeOnTheMap()
myMap.setCenter([userLat, userLng]);
});
}
+
+function tryAddPoint(el)
+{
+ $(el).toggleClass('btn-success').toggleClass('btn-default');
+ if ( $('#addPointButton').hasClass('btn-success') )
+ myMap.cursors.push('crosshair');
+ else
+ myMap.cursors.push('arrow');
+}