Select to view content in your preferred language

Symbol issue with TOC and map

1125
4
Jump to solution
04-13-2012 05:53 AM
RachelLinonis
Deactivated User
Good morning!

(This might be a stupid question.. but here I go.) I'm toying around with this Javascript code that has a cool TOC-feature that I like. I've taken the following code,

var safety = new esri.layers.ArcGISDynamicMapServiceLayer("http://arcgis.focusproject.org:8399/arcgis/rest/services/2012APR11_California_Partnerships_Colleges_HealthCare_VA.gdb/MapServer", {     id : 'publicsafety',     opacity : 0.8 });


and replaced it with the layer that I want from my REST service. The first time I did it, I used the default symbology that I created in ArcGIS Desktop within the TOC and within the map worked just fine. I got my desired result.

Then, I went back to the ArcGIS Desktop, changed the symbology to ones from the ArcGIS Explorer (in the Symbol Selector). Now, the layer's symbology shows up in the TOC but not on the map itself. What is going on?

Here's a screen shot:

[ATTACH=CONFIG]13490[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
JeffPace
MVP Alum
That worked! (I guess the answer was that easy!)

Although the symbols look a little funny ... Am I better off trying to change (or overwrite) the symbology on the JavaScript end rather than the desktop end?

Screen shot: [ATTACH=CONFIG]13491[/ATTACH]


It looks like your symbols are picture marker symbols that are jpgs (or not true transparent pngs).  I would fix the symbol in desktop, instead of overriding in the api.

Would you mind marking my response as an answer? thanks.

View solution in original post

0 Kudos
4 Replies
JeffPace
MVP Alum
after you changed the mxd and msd and restarted the service, did you clear the rest cache?
0 Kudos
RachelLinonis
Deactivated User
after you changed the mxd and msd and restarted the service, did you clear the rest cache?


That worked! (I guess the answer was that easy!)

Although the symbols look a little funny ... Am I better off trying to change (or overwrite) the symbology on the JavaScript end rather than the desktop end?

Screen shot: [ATTACH=CONFIG]13491[/ATTACH]
0 Kudos
JeffPace
MVP Alum
That worked! (I guess the answer was that easy!)

Although the symbols look a little funny ... Am I better off trying to change (or overwrite) the symbology on the JavaScript end rather than the desktop end?

Screen shot: [ATTACH=CONFIG]13491[/ATTACH]


It looks like your symbols are picture marker symbols that are jpgs (or not true transparent pngs).  I would fix the symbol in desktop, instead of overriding in the api.

Would you mind marking my response as an answer? thanks.
0 Kudos
RachelLinonis
Deactivated User
Thanks, Jeff! Will do.
0 Kudos