Fix references to removed MultiPolygon constructor

This commit is contained in:
James Lyne 2022-01-14 15:15:29 +00:00
parent a19674c20c
commit 3ebc1b4123

View File

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