git-svn-id: https://msi/svn/firstRepo/WebClient/branches/Manut_3.0.1@78 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user