This project has moved and is read-only. For the latest updates, please go here.

Map stops rendering when vector layer has theme

Topics: SharpMap Project
Feb 11, 2015 at 2:04 PM
Using Sharpmap 1.1 and I'm seeing behaviour I don't understand. I have created two vector layers (fed by GeometryProvider) and a set of gdalrasterlayers and added them to the map. They all display as expected. However, if I add a theme to one of the vector layers, the whole thing disappears - no map, no vector layers just the background.

The theme being added is an instance of CustomTheme referencing a method that currently just returns a fixed VectorStyle irrespective of the input. The delegate never gets called.

Any help on what I have missed out would be gratefully received.

Feb 11, 2015 at 4:45 PM
You have to use GeometryFeatureProvider if you want to use a theme.
Feb 11, 2015 at 6:04 PM
Yup, that was it. Thanks very much for the quick reply.