Select to view content in your preferred language

Changing a legend from vertical to horizontal in ArcGIS Java Script API (3.2/3.3)

1763
3
Jump to solution
03-04-2013 08:09 PM
SunilPalkar
Deactivated User
I want to change legend style vertical to horizontal in Java script API.

I researched and tried few things on Google but not able to change style. I have published simple map service using ArcGIS Desktop 10.1 and accessing that map service through REST in my java script application.

I tried to set style in Desktop itself but it was not working. I think default order of legend in REST horizontal but can we change it to horizontal??

I researched following things:

1.First I tried through API but no setting in the ESRI Java script API (version 3.2/3.3) and no horizontal legend examples available on ESRI's site.

2.Gone through few links, I guess it is applicable for desktop only not in the REST service. Link1 , Link2

Software's : ArcGIS Desktop 10.1 & ArcGIS Server 10.1 , ArcGIS Java script API 3.2/3.3

3.Researching on Google + Checking dijit references

4.Please check the screen shots (First is default order screenshot second one is horizontal order screenshot ( I have modified this was in MS paint)

[ATTACH=CONFIG]22363[/ATTACH] [ATTACH=CONFIG]22364[/ATTACH]

So any help will be great !!! thanks in advance : )
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: manojrajteli

I tried in Firefox to align in horizontal using CSS and worked but it in IE and Chrome is not working.It has properties to align in right and left but not on top or bottom.

View solution in original post

0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: manojrajteli

I tried in Firefox to align in horizontal using CSS and worked but it in IE and Chrome is not working.It has properties to align in right and left but not on top or bottom.
0 Kudos
SunilPalkar
Deactivated User
Thanks for your reply..

I will check this and let you know..

thanks a lot !!!

I tried in Firefox to align in horizontal using CSS and worked but it in IE and Chrome is not working.It has properties to align in right and left but not on top or bottom.
0 Kudos
SunilPalkar
Deactivated User
Hello Manojraj

Working fine in firefox (not in IE) but we will research and let you know..

thanks once again : )

I tried in Firefox to align in horizontal using CSS and worked but it in IE and Chrome is not working.It has properties to align in right and left but not on top or bottom.
0 Kudos