# `GSLayer selectedElementsMappings`

*Instance Method*

Structural mappings for the selected elements.

## Declaration

```swift
func selectedElementsMappings() -> [AnyHashable : Any]
```

```objc
- (NSDictionary *) selectedElementsMappings;
```

```python
selectedElementsMappings() -> dict
```

## Discussion

The mappings identify nodes and shapes by position and other elements by stable keys. They can be applied to layers with corresponding content.

## See Also

### Selection Serialization

- [`GSLayer selectedObjects`](/Core/GlyphsCore/GSLayer/selectedObjects) — Content representing the selected elements for serialization and paste.
- [`GSLayer removeMappedElements:`](/Core/GlyphsCore/GSLayer/removeMappedElements:) — Removes elements described by structural mappings.
- [`GSLayer removeElement:`](/Core/GlyphsCore/GSLayer/removeElement:) — Removes a selectable element from the layer.
- [`GSLayer removeNodesCutPath:`](/Core/GlyphsCore/GSLayer/removeNodesCutPath:) — Removes mapped nodes while preserving the unselected path portions.
- [`GSLayer pasteDict:format:selectedNodes:error:`](/Core/GlyphsCore/GSLayer/pasteDict:format:selectedNodes:error:) — Adds content from a serialized selection dictionary.
- [`GSLayer selectedPaths:notSelected:`](/Core/GlyphsCore/GSLayer/selectedPaths:notSelected:) — Separates paths by whether they contain selected nodes.

