Fixed flatmap.

This commit is contained in:
FrozenCow 2011-07-27 17:07:28 +02:00
parent ce00242253
commit e90087390a

View File

@ -1,8 +1,8 @@
var FlatProjection = DynmapProjection.extend({
fromLocationToLatLng: function(location) {
return new L.LatLng(
-location.z / (8 << this.options.mapzoomout),
location.x / (8 << this.options.mapzoomout),
-location.z / (1 << this.options.mapzoomout),
location.x / (1 << this.options.mapzoomout),
true);
}
});