diff --git a/rest/web/WEB-INF/views/css/yandex-map.css b/rest/web/WEB-INF/views/css/yandex-map.css
index 1143d31..6db2d3f 100644
--- a/rest/web/WEB-INF/views/css/yandex-map.css
+++ b/rest/web/WEB-INF/views/css/yandex-map.css
@@ -1,4 +1,8 @@
#yandexMap{
width: 100%;
height: 400px;
+}
+#map {
+ width: 100%;
+ height: 400px;
}
\ No newline at end of file
diff --git a/rest/web/WEB-INF/views/helloPage.jsp b/rest/web/WEB-INF/views/helloPage.jsp
index 0d030c4..d38a272 100644
--- a/rest/web/WEB-INF/views/helloPage.jsp
+++ b/rest/web/WEB-INF/views/helloPage.jsp
@@ -41,7 +41,7 @@
-
+
diff --git a/rest/web/WEB-INF/views/js/multiroute_driving.js b/rest/web/WEB-INF/views/js/multiroute_driving.js
new file mode 100644
index 0000000..56cbeec
--- /dev/null
+++ b/rest/web/WEB-INF/views/js/multiroute_driving.js
@@ -0,0 +1,145 @@
+function init () {
+ multiRoute = new ymaps.multiRouter.MultiRoute({
+ referencePoints: rout,
+ params: {
+ results: 1
+ }
+ }, {
+ editorMidPointsType: "via",
+ editorDrawOver: false
+ });
+
+ buttonEditor = new ymaps.control.Button({
+ data: { content: "Режим редактирования" }
+ });
+
+ buttonEditor.events.add("select", function () {
+ multiRoute.editor.start({
+ addWayPoints: true,
+ removeWayPoints: true
+ });
+ });
+
+ buttonEditor.events.add("deselect", function () {
+ multiRoute.editor.stop();
+ routMake(multiRoute);
+ });
+
+ myMap = new ymaps.Map('map', {
+ center: rout[1],
+ zoom: 7,
+ controls: ['default', 'routeButtonControl', buttonEditor]
+ }, {
+ buttonMaxWidth: 300
+ });
+ myMap.geoObjects.add(multiRoute);
+
+}
+function routMake(multiRoute) {
+ var JSONObject = multiRoute.model.getJson();
+ var length = JSONObject.properties.waypoints.length;
+ var routJson =[];
+ for (var i = 0; i
На многих коммерческих сайтах есть контактная информация с местом расположения их офиса. Иногда, - это просто изображение со схемой проезда, но очень часто встречается использование Яндекс.Карт
- -