git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@79 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-03-13 17:23:25 +00:00
parent 137b074d85
commit 8903d71a93
8 changed files with 32 additions and 16 deletions
+6 -4
View File
@@ -78,9 +78,9 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/maps/mapsViewTemplate.
position: google.maps.ControlPosition.RIGHT_CENTER
},
        };
$("#map-canvas").width(document.documentElement.clientWidth - 32/*Padding content*/);
$("#map-canvas").height(document.documentElement.clientHeight - 151 - self.$el.find('#searchPanel').height());
self.map = new google.maps.Map($("#map-canvas")[0], myOptions);
self.$el.find("#map-canvas").width(document.documentElement.clientWidth - 32/*Padding content*/);
self.$el.find("#map-canvas").height(document.documentElement.clientHeight - 151 - self.$el.find('#searchPanel').height());
self.map = new google.maps.Map(self.$el.find("#map-canvas")[0], myOptions);
// Create the search box and link it to the UI element.
var input = $('<input id="pac-input" data-role="none" class="controls" type="text" placeholder="Ricerca località..." style="display:none;">')[0];
@@ -200,7 +200,9 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/maps/mapsViewTemplate.
$("#map-canvas").width(document.documentElement.clientWidth - 32/*Padding content*/);
$("#map-canvas").height(document.documentElement.clientHeight - 151 - self.$el.find('#searchPanel').height());
});
},
onShowing: function(){
var self = this;
if ( navigator.geolocation ) {
        function success(pos) {
            // Location found, show map with these coordinates