addLayerDictionaryEntry function

Adds an entry to a layer dictionary