Select to view content in your preferred language

TOC sample code - unable to see image/graphics for legend

1780
9
10-03-2011 02:03 AM
shwetakunjadia
Emerging Contributor
hi,

I am facing problem with TOC i can see the list of layers but image/graphics is not displayed...
Arcgis 10 - using REST URL

I wont be able to understand if i create any map service in my case legend is not displayed default while in sample code URL :
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/PublicSafety/PublicSafetyOperationalLayer...
Legend is displayed....

In Arcgis Manager is there any direct way to create legend ???? Or am i missing something while creating .mxd or any other issue??

please help me...
its Urgent 😞

Thanks,
Shweta
0 Kudos
9 Replies
shwetakunjadia
Emerging Contributor
i have attached .png file ...
it is from sample code where legend is displayed ...
how can i set in my case???

Thanks,
Shweta
0 Kudos
shwetakunjadia
Emerging Contributor
Thanks for your reply...

but how they created i don't wont from sample code i want to create my own service as i told you i m having license of version 10.

Can you please help me how they created using arcgis manager??

Thanks,
Shweta
0 Kudos
shwetakunjadia
Emerging Contributor
currently i have created map service with KML and feature support layer but i can only see the list of layers using TOC i wont be able to see graphics/image related legend.....

Please help me......
0 Kudos
SanajyJadhav
Deactivated User
I think you have to install SP1 for all ArcGIS 10 products,then only you would get legends.

Go through http://forums.arcgis.com/threads/20806-Legend-not-load-API-2.1.?highlight=legend+sp1 this post.

Hope this helps.
0 Kudos
shwetakunjadia
Emerging Contributor
Thanks Sanjay for your reply ...

But its only applicable if the current version must be 10.01 mine is 10 😞

still i have tried with post install option but its not working..

Thanks,
Shweta
0 Kudos
SanajyJadhav
Deactivated User
As per my knowledge, to get legends you have to have version 10 and SP1.It seems that you have version 10 without SP1.

Can you try installing SP1?
0 Kudos
shwetakunjadia
Emerging Contributor
Hey Thanks Sanjay .....

Finally i got after installing Arcgis server 10 SP1 .......

Thank you once again...........

Regards,
Shweta
0 Kudos
SanajyJadhav
Deactivated User
No worries.

Glad it helped. Cheers.

-
sanjay.
0 Kudos