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!
Solved! Go to Solution.
This is a known issue with version 4.2 of the JSAPI and will be fixed in the next release.
This is a known issue with version 4.2 of the JSAPI and will be fixed in the next release.
Thanks, Kelly.