mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Make 2D outlines support Y coordinates other than y=64
This commit is contained in:
parent
a743524318
commit
3c1c8ec8dc
@ -189,10 +189,10 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
||||
|
||||
function create2DBoxLayer(maxx, minx, maxy, miny, maxz, minz, style) {
|
||||
return new L.Polygon([
|
||||
latlng(minx,64,minz),
|
||||
latlng(maxx,64,minz),
|
||||
latlng(maxx,64,maxz),
|
||||
latlng(minx,64,maxz)
|
||||
latlng(minx,miny,minz),
|
||||
latlng(maxx,miny,minz),
|
||||
latlng(maxx,miny,maxz),
|
||||
latlng(minx,miny,maxz)
|
||||
], style);
|
||||
}
|
||||
|
||||
@ -223,7 +223,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
||||
var llist = [];
|
||||
var i;
|
||||
for(i = 0; i < xarray.length; i++) {
|
||||
llist[i] = latlng(xarray[i], 64, zarray[i]);
|
||||
llist[i] = latlng(xarray[i], miny, zarray[i]);
|
||||
}
|
||||
return new L.Polygon(llist, style);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user