Maybe it's just me, but since I've contacted ESRI and they can't figure it out either, I'm throwing this out there in case someone has experienced this and can shed some light on the subject:
With some TextSymbol labeling code I am working on, I have discovered that when I view my work in Internet Explorer (11), the labels do not show up. They show up in Chrome and Firefox. I also see the same thing when I use the Points for labeling sample: When I copy and paste the source code for this sample into a HTML page and view it on my web server, the labeling does not appear for me in just IE. However, when I view ESRI's live sample in IE, the labels DO show up. My coworker also experiences the same when viewing these on her computer in IE.
After contacting ESRI Technical Support, we tried looking at the IE Developer Console etc, but no errors were reported when running the page. Also even though I do not see the TextSymbol labels show up when I view my copy of the Points for labeling sample, the ESRI tech had no problem viewing the labels viewing the same page hosted on my external web server. Because they were not able to reproduce the issue on their end, I couldn't get an incident ticket created.
So, anybody got an idea what may be going on given the above? Is it some kind of strange security setting in my LAN that enables us to view TextSymbols in IE on ESRI's site but not on the same code served out of my web server? Something else to try to help troubleshoot this?
Thank you for your time,
Kirstin
Solved! Go to Solution.
Hi Robert,
I Reset as you suggested, "Deleted personal settings", restarted my computer, opened IE11, chose "Don't use recommended settings" for "Set up Internet Explorer 11", didn't enable and add-ons, but still am experiencing the no-TextSymbol issue.
Kirstin,
Se my last EDITED response.
Kirstin,
Is by any chance your compatibility view on? When I turn the compatibility view off it works.
Tim
Hi Tim,
I went to "Compatibility View settings", unchecked "Display intranet sites in Compatibility View", but still having the issue.
Hi Kirsten
Any solution to this. Just ran into It.
Thanks
Keith Anderson
Keith,
Does the marked answer not work for you?
Robert
Here is my example of what is happening....
The code below is straight off ESRI's site.
Copied directly into an HTML page it works with IE11, Chrome and FF.
Removing the statesRenderer and only displaying the labelsRenderer does not work in IE11...but does display in Chrome and FF.
Any suggestions/comment are grateful.
Keith
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <link rel="stylesheet" href="https://community.esri.com//js.arcgis.com/3.13/esri/css/esri.css"> <style> html, body, #map { height: 100%; width: 100%; margin: 0; padding: 0; } </style> <script src="//js.arcgis.com/3.13/"></script> <script> var map; require([ "esri/map", "esri/geometry/Extent", "esri/layers/FeatureLayer", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "esri/symbols/TextSymbol", "esri/renderers/SimpleRenderer", "esri/layers/LabelLayer", "esri/Color", "dojo/domReady!" ], function ( Map, Extent, FeatureLayer, SimpleLineSymbol, SimpleFillSymbol, TextSymbol, SimpleRenderer, LabelLayer, Color ) { // load the map centered on the United States var bbox = new Extent({ "xmin": -1940058, "ymin": -814715, "xmax": 1683105, "ymax": 1446096, "spatialReference": { "wkid": 102003 } }); map = new Map("map", { extent: bbox }); var labelField = "STATE_NAME"; // create a renderer for the states layer to override default symbology //var statesColor = new Color("#666"); //var statesLine = new SimpleLineSymbol("solid", statesColor, 1.5); //var statesSymbol = new SimpleFillSymbol("solid", statesLine, null); //var statesRenderer = new SimpleRenderer(statesSymbol); // create a feature layer to show country boundaries var statesUrl = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3"; var states = new FeatureLayer(statesUrl, { id: "states", outFields: [labelField] }); //states.setRenderer(statesRenderer); map.addLayer(states); // create a text symbol to define the style of labels var statesLabel = new TextSymbol().setColor("#666"); statesLabel.font.setSize("14pt"); statesLabel.font.setFamily("arial"); var statesLabelRenderer = new SimpleRenderer(statesLabel); var labels = new LabelLayer({ id: "labels" }); // tell the label layer to label the countries feature layer // using the field named "admin" labels.addFeatureLayer(states, statesLabelRenderer, "{" + labelField + "}"); // add the label layer to the map map.addLayer(labels); }); </script> </head> <body> <div id="map"></div> </body> </html>