Hi Anand,
Good questions there! Here are the solutions:
1. increase border
a, if you want to increase the canvas border, you go to function
imgmap.prototype._setBorder
and change
this.areas[id].style.borderWidth = '3px';
for example.
b, if you want to change the border thickness of the shapes
themselves, you go to function
imgmap.prototype._repaint
and for both the circle, both the polygon sections, before
ctx.beginPath();
you add
ctx.lineWidth = 3;
Please note that the rectangles use the canvas border as the shape
border, so to change a rectangle border, you need to do the change in
1/a.
2. fill the area
a, for circles and polygons, you go to the function
imgmap.prototype._repaint
and for both shapes before
ctx.beginPath();
you add
ctx.fillStyle = color;
then either you replace ctx.stroke(); with ctx.fill(); or add it in a
new line.
The difference is if the shape will only be filled, or filled+ border
drawn.
b, for rectangles it is a bit more problematic, as a quick hack you
can go to function
imgmap.prototype._setopacity
and add
if (area.shape == 'rect') {
bgcolor = '#ff0000';
}
as the first line with your desired color.
Would be nice to have most of these settings configurable. I will add
it to the next release.
Cheers,
Adam