Quantcast
Viewing all articles
Browse latest Browse all 2341

Commented Unassigned: Map Legend Error MapWinGIS.tkShapeDrawingMethod [26002]

I am building a MapWinGIS application in VB .Net VS 2013.
After adding a legend to a form I receive the following error message:
An unhandled exception of type 'System.MissingMethodException' occurred in MapWinInterfaces.dll
Additional information: Method not found: 'MapWinGIS.tkShapeDrawingMethod MapWinGIS._DMap.get_ShapeDrawingMethod()'.
The code that throws the error is
Legend1.Map = AxMap1.GetOcx
My LegendControl Map Property shows none and cannot be change.

The library verision I am using are:
MapWinGIS 4.9.0.0
AxInterop.MapWinGIS 4.9.0.0
MapWinInterfaces 4.8.8.36944.


Comments: Map.ShapeDrawingMethod is [removed from API](http://www.mapwindow.org/documentation/mapwingis4.9/class_ax_map___deprecated.html#a5894e5b70f330e2b37b2ba6eb92f243f). The move was announced [here](https://mapwingis.codeplex.com/wikipage?title=NotesVersion493) (section 2). As stated, the properties are removed from API by conditional compilation (its enough to define OLD_API preprocessor directive to restore them). Can you resolve the issue by yourself, by rebuilding either MapWinGIS source or MapWinInterfaces.dll? If not I'll consider restoring it in the next hot fix. If it's a matter of a single property, it's certainly makes sense to do it. BTW, there is a version of legend control compatible with MapWinGIS 4.9.3 in our [Demo project](https://mapwingis.codeplex.com/SourceControl/latest#demo/MWLite.Symbology/LegendControl/Legend.cs). As for MapWindow 4 dlls we no longer support them, since new MapWindow 5 version [will be released soon](http://mapwindow5.codeplex.com/SourceControl/latest#src/MW5.sln). Regards, Sergei

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>