remove offset centering (causing infinite loops)
This commit is contained in:
@@ -160,7 +160,7 @@ oSpot.pageInit = function(asHash)
|
||||
|
||||
},*/
|
||||
click: function(oPoint){
|
||||
self.tmp('center_on', oPoint.latlng);
|
||||
//self.tmp('center_on', oPoint.latlng);
|
||||
self.tmp('map').setView(oPoint.latlng, 15);
|
||||
}
|
||||
});
|
||||
@@ -330,7 +330,7 @@ function getPost(asPost) {
|
||||
.click(function(){
|
||||
var $This = $(this);
|
||||
var oCenter = L.latLng(parseFloat($This.data('lat')), parseFloat($This.data('lng')));
|
||||
self.tmp('center_on', oCenter);
|
||||
//self.tmp('center_on', oCenter);
|
||||
self.tmp('map').setView(oCenter, 13);
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user