Adds the layer to the map at the specified index. The layer must be newly created and not added to the map before
the layer to add
the index to insert the layer at