JSAPI v4 - Access features with click events - Not working in IE11

1295
2
Jump to solution
01-18-2017 09:52 AM
ChrisSmith7
Frequent Contributor

I have some code in the v4 JSAPI that is attempting something similar to the following example:

Access features with click events | ArcGIS API for JavaScript 4.2 

However, IE11 is not resolving response.results() - you can see this manifest in the demo. Check out line ~81, which is the function getGraphics() - you can see the results are empty:

function getGraphics(response) {
 // the topmost graphic from the click location
 // and display select attribute values from the
 // graphic to the user
 var graphic = response.results[0].graphic;
 var attributes = graphic.attributes;
 var category = attributes.CAT;
 var wind = attributes.WIND_KTS;
 var name = attributes.NAME;
dom.byId("info").style.visibility = "visible";
 dom.byId("name").innerHTML = name;
 dom.byId("category").innerHTML = "Category " + category;
 dom.byId("wind").innerHTML = wind + " kts";
// symbolize all line segments with the given
 // storm name with the same symbol
 var renderer = new UniqueValueRenderer({
 field: "NAME",
 defaultSymbol: layer.renderer.symbol || layer.renderer.defaultSymbol,
 uniqueValueInfos: [{
 value: name,
 symbol: new SimpleLineSymbol({
 color: "orange",
 width: 5,
 cap: "round"
 })
 }]
 });
 layer.renderer = renderer;
 }

In Chrome, it functions well... so, is this an issue with JSAPI v4 in IE11... is there a workaround?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor

This is a known issue with version 4.2 of the JSAPI and will be fixed in the next release. 

View solution in original post

2 Replies
KellyHutchins
Esri Frequent Contributor

This is a known issue with version 4.2 of the JSAPI and will be fixed in the next release. 

ChrisSmith7
Frequent Contributor

Thanks, Kelly.

0 Kudos