IMHO, SLayers - in terms of how API users view them - have a single identitory feature, their name. Hence, I cannot see why Salt should allow multiple layers with the same name. I guess that most Salt users will use them in that way, i.e., have only one layer with any given name.
Therefore, it would make the layer API a lot more usable if Salt would disallow the creation of layers with a name that already exists. getLayerByName(String name) would then return only the one layer with that name.
@FlorianZipser: Is there a reason why the above assumptions are wrong?
IMHO,
SLayers - in terms of how API users view them - have a single identitory feature, theirname. Hence, I cannot see why Salt should allow multiple layers with the same name. I guess that most Salt users will use them in that way, i.e., have only one layer with any given name.Therefore, it would make the layer API a lot more usable if Salt would disallow the creation of layers with a name that already exists.
getLayerByName(String name)would then return only the one layer with that name.@FlorianZipser: Is there a reason why the above assumptions are wrong?