Select to view content in your preferred language

Image Request in IE Issue

906
2
10-15-2013 12:21 PM
BrianLord1
Deactivated User
Hi,

I have an app that I just placed out on our web server and now all the server requests sent through the proxy page.
esriConfig.defaults.io.alwaysUseProxy = true;
 
Everything works great until I view the app in IE8.  The symbols for the feature layer do not show up.  When viewing the request in fiddler it seems that for some reason the image request does not get sent to the proxy page and instead gets sent directly to the rest endpoint and therefore cannot get through.

Has anyone dealt with this issue before?

I tried to follow the solution outlined in this thread (http://forums.arcgis.com/threads/24303-FeatureLayer-not-showing-image-in-Internet-Explorer-8-or-9) but that did not work for me because my layers renderer property is returned as null for some reason.

Any help would be greatly appreciated.

Thanks,
Mark
0 Kudos
2 Replies
BrianLord1
Deactivated User
Okay, so here is where I stand now...

So I decided to create my own simple renderer for my features by creating a picturesymbol that uses the same image as my original feature service used.  I then embedded this renderer into a decision tree so it would only be applied to my feature layer if the web browser was IE, all other browsers would be handled the default way.

Here is my code...
 var pollLayer1 = new esri.layers.FeatureLayer(isBrowser ? pollLayer.ServiceUrl : pollMobileLayer.ServiceUrl, {
                mode: esri.layers.FeatureLayer.MODE_SNAPSHOT,
                displayOnPan: isBrowser ? true : true,
                outFields: ["*"]
            });

            pollLayer1.id = pollLayerId;
            if (isBrowser) {
                if (pollLayer1.UseImage) {
                    var pictureSymbol = new esri.symbol.PictureMarkerSymbol(pollLayer.Image, 25, 25);
                        var pollingPlaceRenderer = new esri.renderer.SimpleRenderer(pictureSymbol);
                        pollLayer1.setRenderer(pollingPlaceRenderer);               
                } else if (dojo.isIE) {
                    var symbolURL = 'http://server/Voting/images/star_symbol.png';
                    var pollSymbol = new esri.symbol.PictureMarkerSymbol(symbolURL, 23, 23);
                    var pollingPlaceRenderer = new esri.renderer.SimpleRenderer(pollSymbol);
                    pollLayer1.setRenderer(pollingPlaceRenderer);
                }
            }
            else {
                if (pollMobileLayer.UseImage) {
                    var pictureSymbol = new esri.symbol.PictureMarkerSymbol(pollMobileLayer.Image, 25, 25);
                    var pollingPlaceRenderer = new esri.renderer.SimpleRenderer(pictureSymbol);
                    pollLayer1.setRenderer(pollingPlaceRenderer);
                }
            }
            map.addLayer(pollLayer1);


This seemed to be working great, however after testing the site for a awhile I noticed I have a different problem now.  If I navigate to the site all the features show up, but if i hit refresh or leave and then come back to the site then only some of the features show up on the map.  It is alwways the same ones that show up, so it is not random.

Any thoughts?

Thanks,
Mark
0 Kudos
MattLane
Frequent Contributor
I have what I think is a similar issue. I have a 3.7 site that uses the identity manager. In IE 8 the image symbols are not showing up for the two secured feature layers. The network traffic shows the request with a login page response. The identity manager credentials should be handing off a token in the request, but doesn't appear to be.
0 Kudos