remove offset centering (causing infinite loops)

This commit is contained in:
2018-10-21 12:32:13 +02:00
parent 2a7049638f
commit adb173cd2f

View File

@@ -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);
})
);