# MapWinGis LoadMapState project

**URL:** <https://mapwindow.discourse.group/t/mapwingis-loadmapstate-project/489>\
**Category:** MapWinGIS\
**Created:** [March 16, 2020, 7:06am UTC](https://mapwindow.discourse.group/t/mapwingis-loadmapstate-project/489 "2020-03-16T07:06:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmjc23](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@mmjc23](https://mapwindow.discourse.group/u/mmjc23)\
**Post date:** [March 16, 2020, 7:06am UTC](https://mapwindow.discourse.group/t/mapwingis-loadmapstate-project/489/1 "2020-03-16T07:06:59Z")

</div>

Hi guys and thank you for sharing this fantastic control.  
I would like to use it in an old [VB.Net](http://VB.Net) 2015 application and in the next C# VS2019 applications.

With my application, I would like to provide the customer with an already themed map consisting of a set of vector and/or raster layers.  
So, when the customer opens the map in my application, he finds an already configured map (layer order, layer style, layer scale, labels, etc.).

The question is…how can I generate a preconfigured “MapState”? Since there is currently no legend object such as MapWindow, do I have to write all the [Vb.Net](http://Vb.Net) code to customize each single layer?  
To speed up the development of the application, I initially thought not to develop all the code for a legend object or for the customization of the layers.

So I thought about generating a preconfigured “MapState” using MapWindow 5.5 (mwproj file) and opening this file from my application using the “LoadMapState” method.  
Unfortunately, it seems that the “LoadMapState” method is unable to read the MapWindow mwproj files.  
Is there any way to make the MapWindow mwproj file compatible with the MapWinGis “LoadMapState” method?

Another question if I am allowed…  
With MapWindow/MapWinGis I can’t open and view any ECW file, I get the error “ _Failed to open datasource: EcwFile. Unsupported datasource format. It may be caused by GlobalSettings.GdalPluginPath pointing to the wrong folder_ ”  
I also tried to install the “gdal-300-1900-core.msi”, “gdal-300-1900-ecw-53.msi” and “ECWJP2SDKSetup\_5.4.0.exe” components, but the problem is not solved.  
Any ideas?

Thank you in advance  
Best Regards

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 5, 2022, 3:09pm UTC](https://mapwindow.discourse.group/t/mapwingis-loadmapstate-project/489/2 "2022-01-05T15:09:00Z")

</div>


