Global Mapper v25.0

problem in export package with custom symbol

newgmuser
newgmuser Global Mapper User
edited June 2011 in Technical Support
Hi,
I am trying to add custom symbol through SDK and trying to export it to gmp. Want to check the added custom symbol should be visible in global mapper by opening the exported gmp. I have added the same custom symbol 'Smiley' (that I have used in program) in Global mapper configure >> add custom symbol.
step 1. I have successfully added the custom symbol'Smiley' to the point feature from a gmw file created in global mapper 11 in my application through SDK.
step 2. I can see the new symbols in my application Form.
step3. I can export the package without any error.
step4: But when I open the exported gmp file in Global mapper I can't see the new added symbol. Instead I see the Dot symbol.
Please help.
Here is the code.
LastGMError = GlobalMapperDLL.GM_AddCustomSymbol(@D:\smiley1.bmp, "Smiley");
.
.
LastGMError = GlobalMapperDLL.GM_SetPointFeatureDrawStyle(aLayerHandle, ipnts, newPointStyle);

// Drwa layers.
// Can see added custom symbol on screen

LastGMError = GlobalMapperDLL.GM_ExportPackage
(
@d:\gistest1.gmp
, IntPtr.Zero // List of layers to export (NULL)
, 0 // Number of layers in list (0 for all)
, IntPtr.Zero // World bounds to export (NULL)
, 0.0 // Simplification threshold
, GlobalMapperDLL.GM_PackageExportFlags_t32.GM_ExportPackage_KeepAllStyles // Export flags
);

Comments

  • global_mapper
    global_mapper Administrator
    edited June 2011
    Can you provide a sample .gmp file that you are creating so that I can see if the custom symbol is being stored in there? Also, what version of the SDK are you using?

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com