Fixed map.addLayer
Now possible to give an id OR an element to the map