Merge pull request #3611 from JLyne/multipolygon-fix

Fix 3D areas
This commit is contained in:
mikeprimm 2022-01-15 18:21:59 -06:00 committed by GitHub
commit ebb312c90e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
}
function create3DBoxLayer(maxx, minx, maxy, miny, maxz, minz, style) {
return new L.MultiPolygon([
return new L.Polygon([
[
latlng(minx,miny,minz),
latlng(maxx,miny,minz),
@ -333,7 +333,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
polylist[xarray.length] = botlist;
polylist[xarray.length+1] = toplist;
return new L.MultiPolygon(polylist, style);
return new L.Polygon(polylist, style);
}
function create2DOutlineLayer(xarray, maxy, miny, zarray, style) {