Fix naming on Residence regions, make infowindow setting control popup content again
This commit is contained in:
parent
302953f3f1
commit
f4efd8e31d
2 changed files with 16 additions and 22 deletions
|
|
@ -8,7 +8,7 @@ regionConstructors['Residence'] = function(dynmap, configuration) {
|
|||
var boxLayers = [];
|
||||
$.each(data, function(name, residence) {
|
||||
if(configuration.worldName == residence.Permissions.World) {
|
||||
$.each(residence.Areas, function(name, area) {
|
||||
$.each(residence.Areas, function(aname, area) {
|
||||
var boxLayer = configuration.createBoxLayer(area.X1, area.X2, area.Y1, area.Y2, area.Z1, area.Z2);
|
||||
|
||||
boxLayer.bindPopup(configuration.createPopupContent(name, $.extend(residence, {
|
||||
|
|
@ -21,7 +21,7 @@ regionConstructors['Residence'] = function(dynmap, configuration) {
|
|||
$.each(residence.Subzones, function(szname, subzone) {
|
||||
$.each(subzone.Areas, function(name2, area2) {
|
||||
var subzoneLayer = configuration.createBoxLayer(area2.X1, area2.X2, area2.Y1, area2.Y2, area2.Z1, area2.Z2);
|
||||
subzoneLayer.bindPopup(configuration.createPopupContent(name2, $.extend(subzone, {
|
||||
subzoneLayer.bindPopup(configuration.createPopupContent(name + '.' + szname, $.extend(subzone, {
|
||||
owners: { players: [subzone.Permissions.Owner] },
|
||||
flags: subzone.Permissions.AreaFlags
|
||||
})));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue