mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-28 03:27:36 +01:00
Fix regionstyle attributes for region outlines and fill
This commit is contained in:
parent
0ebabf5b61
commit
3b7fcc67ad
@ -5,11 +5,12 @@ componentconstructors['regions'] = function(dynmap, configuration) {
|
||||
// Compatibility with older configurations.
|
||||
if (configuration.regionstyle) {
|
||||
configuration.regionstyle = $.extend({
|
||||
stroke: true,
|
||||
color: configuration.strokeColor,
|
||||
opacity: configuration.strokeOpacity,
|
||||
weight: configuration.strokeWeight,
|
||||
fill: true
|
||||
stroke: (configuration.regionstyle.strokeOpacity > 0.0),
|
||||
color: configuration.regionstyle.strokeColor,
|
||||
opacity: configuration.regionstyle.strokeOpacity,
|
||||
weight: configuration.regionstyle.strokeWeight,
|
||||
fill: (configuration.regionstyle.fillOpacity > 0.0),
|
||||
smoothFactor: 0.0
|
||||
}, configuration.regionstyle);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user