Skip to content

Commit

Permalink
Update DrawHelper.js
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jan 15, 2025
1 parent 60c373c commit ed6f11c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions common/DrawHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@ caDrawHelper.prototype.draw = function(ctx, image_data){
for (let i = 0; i < image_data.length; i++) {
const polygon = image_data[i];
if (polygon.properties == undefined || polygon.properties == null){
polygon.properties = {}
polygon.properties = {};
}
let style = polygon.properties.style;
if (style == undefined || style == null){
style = {};
}
const style = polygon.properties.style;

// if there is path using path to draw
// if(polygon.geometry.path){
Expand Down

0 comments on commit ed6f11c

Please sign in to comment.