support for projectionless maps was broken
support for projectionless maps was broken

We had to monkey-patch Layer.setMap(), because we were using a projectionless layer {projection:null, units: 'm'}, where the map only knows the units of the layer. According to the docs, this should work, but we were getting a JS error in .setMap()/Line 639, because OpenLayers tries to extract the units from the projection object.
pgiraud/openlayers,sbrunner/openlayers,pvalsecc/openlayers,v5analytics/openlayers,adh1365/openlayers,wet-boew/openlayers,shevawen/openlayers,adh1365/openlayers,elbakai/openlayers,PublicStuff/openlayers,PetrDlouhy/openlayers,adh1365/openlayers,colllin/openlayers,pvalsecc/openlayers,shevawen/openlayers,pgiraud/openlayers,owenmead/openlayers,elbakai/openlayers,owenmead/openlayers,v5analytics/openlayers,shevawen/openlayers,shevawen/openlayers,PetrDlouhy/openlayers,colllin/openlayers,sanak/ol2,wet-boew/openlayers,colllin/openlayers,owenmead/openlayers,sanak/ol2,altamiracorp/openlayers,kartverket/openlayers,sanak/ol2,sbrunner/openlayers,sbrunner/openlayers,avinet/openlayers,kartverket/openlayers,altamiracorp/openlayers,PublicStuff/openlayers,Gnafu/openlayers,dracic/openlayers,elbakai/openlayers,PetrDlouhy/openlayers,dracic/openlayers,georchestra/openlayers,georchestra/openlayers,avinet/openlayers,avinet/openlayers,colllin/openlayers,pgiraud/openlayers,Gnafu/openlayers,Gnafu/openlayers,pvalsecc/openlayers,owenmead/openlayers,v5analytics/openlayers,sbrunner/openlayers,altamiracorp/openlayers,sanak/ol2,kartverket/openlayers,avinet/openlayers,kartverket/openlayers,openlayers/ol2,wet-boew/openlayers,georchestra/openlayers,Gnafu/openlayers,dracic/openlayers,PublicStuff/openlayers,v5analytics/openlayers,pvalsecc/openlayers,altamiracorp/openlayers,dracic/openlayers,wet-boew/openlayers,openlayers/ol2,elbakai/openlayers,openlayers/ol2,pgiraud/openlayers,openlayers/ol2,PublicStuff/openlayers,adh1365/openlayers,PetrDlouhy/openlayers