I'm getting the following error in Internet Explorer: " Object doesn't support property or method 'includes' "
The method 'includes' works fine in Chrome and Firefox but throws an error for each instance in IE.
This is an example of the code that is creating the error:
var carmen56= new L.GeoJSON(null, {
style: function (feature) {
if (feature.properties.description.includes("Exclude")) {
return {
clickable: true,
weight: 1,
opacity: .80,
fillOpacity: .55,
fillColor: '#55ff00',
color: '#000000'
};
};
if (feature.properties.description.includes("Include")) {
return {
clickable: true,
weight: 1,
opacity: .80,
fillOpacity: .55,
fillColor: '#ffaa00', <!--Orange-->
color: '#000000'
};
};
if (feature.properties.description.includes("Tier 3")) {
return {
clickable: true,
weight: 1,
opacity: .80,
fillOpacity: .55,
fillColor: '#ff0000',
color: '#ff0000'
};
};