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