HELP!!! Saving map and pushpins...

phrozzy
05-30-2006, 03:20 AM
Hi guys, i need to save map with pushpins.
I have only a set of pushpins, and i move them to it.
I'm currently saving map with this code:

MapHandler->SaveAs(WideString(Directory + "Maps\\map.ptm"), Mappoint_tlb::geoFormatMap, true);
MapHandler->set_Saved(true);

Where MapHandler is a Map object (TMap in delphi, i'm using BCB) connected to existing map with ConnectTo method.

But when i go to load map, i see only territory without pushpins...

Can anyone help me ??? I'm frustrated!!! HEeeeelp! :shock: :shock:

Thanks...

Mohamed
05-30-2006, 09:08 AM
Hi,

Try this:

1. Load your Map.ptm directly in Mappoint ( not programatically ) to see if the saving job is done correctly

2. If u don't see the pushpins try the parameter 0 instead of
Mappoint_tlb::geoFormatMap

MapHandler->SaveAs(WideString(Directory + "Maps\\map.ptm"), 0 , true);

3. If you see the pushpins, that means that you don't load the map.ptm
correctly


Ciao

Mohamed
05-30-2006, 12:54 PM
You have to check this also

"Maps\\map.ptm"

it should be "Maps\map.ptm"

bye

 
Web mp2kmag.com
mapforums.com