Hi!
Thanks, now I use such a MapPoint class in my Delphi App. The app now runs stable without errors.
But there is another problem I will tell you now:
In my application there is (simplified for you

) a button - when I click this button, Locations are created and it will be zoomed to the Locations. Zooming is visible on the screen (of course). Then I call the SaveAs method.
Now I found out that the
Map.SaveAs method doesn't work anymore - the map is simply not saved.
I found out, that, if I place a (MP)Application object from the Delphi Toolbar on the form AND set the MP.FMap to its ActiveMap property AND set mpApplication.AutoConnect to true (in Delphi IDE), the map will be saved:
Code:
procedure TMain.FormActivate(Sender: TObject);
begin
MP := TMP.Create(Self, MPPanel);
MP.FMap := mpApplication.ActiveMap; // mpapplication is the object on the form
end;
But doing so, my zooming etc. isn't visible on screen anymore (but zooming etc. has effect on the saved map!).
What I want is to save the map in .ptm file AND see map changes (zooming e.g.) on the screen!
Has someone an idea how to achieve this?
Regards,
Dietmar