Adding scale bar shadow

986
2
Jump to solution
08-25-2014 07:53 PM
AlexGole
Occasional Contributor II

Hi all,

I am trying to add scale bar box-shadow. Is it possible?

Thank you,

Alex

0 Kudos
1 Solution

Accepted Solutions
RiyasDeen
Occasional Contributor III

Hi Alex,

Update:

Add below style class.

      .esriScalebarMetricLine{ box-shadow: 5px 5px 2px #888888; }

      .esriScalebarRuler{ box-shadow: 5px 5px 2px #888888; }

Above will not work when scalebar style is line and unit is english. You can use .esriScalebarEnglishLine{ box-shadow: 5px 5px 2px #888888; } for this scenario but the style looks awkward (last image)

Below are the output, if this is what you are looking for,

Line & Dual:

Untitled.png

Ruler & English;

Untitled.png

Line & English:

Untitled.png

View solution in original post

2 Replies
RiyasDeen
Occasional Contributor III

Hi Alex,

Update:

Add below style class.

      .esriScalebarMetricLine{ box-shadow: 5px 5px 2px #888888; }

      .esriScalebarRuler{ box-shadow: 5px 5px 2px #888888; }

Above will not work when scalebar style is line and unit is english. You can use .esriScalebarEnglishLine{ box-shadow: 5px 5px 2px #888888; } for this scenario but the style looks awkward (last image)

Below are the output, if this is what you are looking for,

Line & Dual:

Untitled.png

Ruler & English;

Untitled.png

Line & English:

Untitled.png

AlexGole
Occasional Contributor II

Thank you! That is it!

0 Kudos