Fixed flatmap.
This commit is contained in:
parent
85a49eb934
commit
e6c32b7b7d
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
var FlatProjection = DynmapProjection.extend({
|
var FlatProjection = DynmapProjection.extend({
|
||||||
fromLocationToLatLng: function(location) {
|
fromLocationToLatLng: function(location) {
|
||||||
return new L.LatLng(
|
return new L.LatLng(
|
||||||
-location.z / (8 << this.options.mapzoomout),
|
-location.z / (1 << this.options.mapzoomout),
|
||||||
location.x / (8 << this.options.mapzoomout),
|
location.x / (1 << this.options.mapzoomout),
|
||||||
true);
|
true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue