OSCAR-360 Discovered use of the .contains method which is no longer provided by OpenLayers so I changed them to use .indexOf instead.