Problem with opening a project

Jun 24, 2014 at 9:41 AM
Hi.

I have an application where the user can add points onto the map in a pointlayer, which get a symbol depending on a pointscheme with different categories. I am trying to implement the ability to save the project and reopening it. I Have used the same code as in the menubar plugin to save/open project, this seems to work. After saving the project, closing the application, and reopening the project, both the map layer and the point layer are displayed with the right categories in the legend, and the map is shown correctly, but none of the points are shown on the map. Seems to be to same behavior in DemoMap. Any hints that could help me to solve this problem?
Developer
Jun 24, 2014 at 12:36 PM
Hi pettmark,

it seems that you have the same issue as described here (see comments).
It is an issue in serialization manager, which does not saves your pointlayer into disk. So as workaround, you have to save this pointlayer by yourself before saving project. For example, you can subscribe to SerializationManager.Serializing event and save this layer inside event handler.
Marked as answer by jany_ on 9/10/2014 at 1:00 PM
Jun 25, 2014 at 6:16 AM
Thanks mogikanin! Will definitely have a look at it!