When I monitor the http calls
I am using secure services by the way.
Why would I be able to display the polygon and line symbology but not the point symbology, with or without the proxy?
Has anyone found a solution to this IE8 issue? I am having the same trouble trying to display a featureLayer that are points (polygons and lines work like they should). I am getting all of the data returned from the server but all that is being displayed is a hollow square in place of the point symbol. I am using simple points. I have tried the solutions found here but none work. Everything works as it should in IE9, Firefox or Chrome.
function fixIELayers(evt) { // IE FIX FOR IMAGES NOT SHOWING IN FEATURE LAYER!!! if (dojo.isIE) { var currentLayer = Hydrants; //map.getLayer(map.layerIds); if(currentLayer && currentLayer.renderer && currentLayer.renderer.infos) { for (var i=0; i<currentLayer.renderer.infos.length; i++) { var url1=currentLayer.renderer.infos.symbol.url; var url2=esri.config.defaults.io.proxyUrl+'?'; if (url1.indexOf(url2) != -1) continue; var url3=url2+url1; currentLayer.renderer.infos.symbol.url = url3; } }else if(currentLayer && currentLayer.renderer && currentLayer.renderer.symbol) { var url1=currentLayer.renderer.symbol.url; var url2=esri.config.defaults.io.proxyUrl+'?'; if (url1.indexOf(url2) == -1) { var url3=url2+url1; currentLayer.renderer.symbol.url = url3; } } } }
function init() { // called with dojo.onLoad // `map` is the main map with basemap both already set.... dojo.connect(map, "onLoad", function() { template = new esri.InfoTemplate(); template.setTitle("mytitle"); template.setContent(getTextContent); var HGLayerURL2 = [myfeaturelayer's url]; // note that below i don't declare the HGLayerMap - it is already declared outside this function HGLayerMap = new esri.layers.FeatureLayer(HGLayerURL2, { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate:template, outFields: [list of my fields hrere...] }); map.addLayer(HGLayerMap); dojo.connect(map,"onUpdateStart",function(){ // some of my code comes here... fixIELayers(); // the fixer... }); // some more code here..... }); return true; } // end of init() dojo.addOnLoad(init); // END INIT PART! function fixIELayers(evt) { // IE FIX FOR IMAGES NOT SHOWING IN FEATURE LAYER!!! if (dojo.isIE) { var currentLayer = HGLayerMap; //map.getLayer(map.layerIds); if(currentLayer && currentLayer.renderer && currentLayer.renderer.infos) { for (var i=0; i<currentLayer.renderer.infos.length; i++) { var url1=currentLayer.renderer.infos.symbol.url; var url2=esri.config.defaults.io.proxyUrl+'?'; if (url1.indexOf(url2) != -1) continue; var url3=url2+url1; currentLayer.renderer.infos.symbol.url = url3; } } } }
I had same problem, this is what I have made:Basicaly the IE gets wrong url without proxy, you have to add it manually. dojo.forEach(layers, function(layer) { if (dojo.isIE) { if(layer.renderer.infos){ for (var i=0; i<layer.renderer.infos.length; i++){ var url1=layer.renderer.infos.symbol.url;// alert(url1); var url2="http://"+server+"/proxy.jsp?";// alert(url2); var url3=url2+url1; layer.renderer.infos.symbol.url=url3; } } }worked for me
Dear ArcGIS Javascript API Team,I have configured a secured MapService with a single layer (Picture Marker Symbol) using the proxy page from Esri.I have configured everything as told on the Javascript documentation about the proxy and if I use the mapservice as an ArcGISDynamicMapService it works fine and the proxy is triggered correctly.When I create a FeatureLayer pointing to the map service layer and add it to the map, I have realized that Internet Explorer 8 or 9 cannot show the images (Base64). The proxy page is being triggered and I believe is missing something in the response code.Google Chrome shows perfectly well all symbology.Can please someone provide me guidance on this?Cheers,José Sousa
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.