I have successfully got Mappoint into my delphi application by the use of a olecontainer, what I would like to do is open a mappoint map from disk. Is this possible?
This is a discussion on How do you open a mapoint map in delphi? within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have successfully got Mappoint into my delphi application by the use of a olecontainer, what I would like to ...
I have successfully got Mappoint into my delphi application by the use of a olecontainer, what I would like to do is open a mappoint map from disk. Is this possible?
When you say open a map from disk, do you mean you would have a static map image (jpg, gif. bmp) file?
~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
~~
~ Upgrade to Get Access to the MapForums Downloads ~
I have opened a map in Mappoint and added some shapes etc and have saved this as a .PMT file.
I now want to open this map in my delphi application so that the delphi application can plot pushpins etc.
Cheers
Mike
I don't know much about Delphi, but see this method in the Help File:
OpenMap method (Application)
Opens an existing map. Displays the Save dialog box if another map is currently active and has not been saved. This method is not available when MapPoint is embedded.
~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
~~
~ Upgrade to Get Access to the MapForums Downloads ~
My Map is embedded in my delphi form so I do not think I can do it that way?
Mike
you can do it.
first, you must install the mappoint activex to delphi's component palet. you can use import type library of the project menu.
then you have to select map object of mappoint from this component palet.
in the formcreate method of the form, :
map1.application.visible:=true;
thus, there will be opened mappoint application.
you can play with this opened applciation. for instance :
map1.addpushpin(loc1,'blah blah');
or
map1.zoomin;
enjoy.
There are currently 1 users browsing this thread. (0 members and 1 guests)