Select to view content in your preferred language

Adding scale bar shadow

1097
2
Jump to solution
08-25-2014 07:53 PM
AlexGole
Deactivated User

Hi all,

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

Thank you,

Alex

0 Kudos
1 Solution

Accepted Solutions
RiyasDeen
Frequent Contributor

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
Frequent Contributor

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
Deactivated User

Thank you! That is it!

0 Kudos