correct coordinates and bold the x/z labels
This commit is contained in:
@@ -134,11 +134,13 @@ overviewer.views.CoordboxView = Backbone.View.extend({
|
|||||||
latLng.lng(),
|
latLng.lng(),
|
||||||
overviewer.mapView.options.currentTileSet);
|
overviewer.mapView.options.currentTileSet);
|
||||||
|
|
||||||
var regionfileX = Math.floor(worldcoords.x / 32.0);
|
var regionfileX = Math.floor(Math.floor(worldcoords.x / 16.0) / 32.0);
|
||||||
var regionfileZ = Math.floor(worldcoords.z / 32.0);
|
var regionfileZ = Math.floor(Math.floor(worldcoords.z / 16.0) / 32.0);
|
||||||
var regionfilename = "r." + regionfileX + "." + regionfileZ + ".mca";
|
var regionfilename = "r." + regionfileX + "." + regionfileZ + ".mca";
|
||||||
|
|
||||||
this.el.innerHTML = "X " + Math.round(worldcoords.x) + " Z " + Math.round(worldcoords.z) + "(" + regionfilename + ")";
|
this.el.innerHTML = "<strong>X</strong> " + Math.round(worldcoords.x) +
|
||||||
|
" <strong>Z</strong> " + Math.round(worldcoords.z) +
|
||||||
|
" (" + regionfilename + ")";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user