An example of how to create your own MapLayer.
I adapted the original How to create a simple FeatureCollection from Scratch example by knudsen, because it no longer compiled with 2.1.M4, which I was using.
- creates a custom Feature,
- creates a custom FeatureType,
- uses SLD (Styled Layer Descriptor) to describe the style to use, and
- creates and shows a custom MapLayer.