Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Adding ActiveX MapPoint to a Webpage

This is a discussion on Adding ActiveX MapPoint to a Webpage within the MapPoint Desktop Discussion forums, part of the Map Forums category; Can someone give me some guidance on how to get MapPoint running on a webpage using ActiveX. I'm using the ...

  1. #1
    edmistj is offline Junior Member White Belt
    Join Date
    Nov 2003
    Posts
    1

    Adding ActiveX MapPoint to a Webpage

    Can someone give me some guidance on how to get MapPoint running on a webpage using ActiveX. I'm using the html below and I just get a blank box.

    <HTML>
    <HEAD>
    <TITLE>New Page</TITLE>

    </HEAD>
    <BODY>

    <OBJECT ID="MappointControl1" WIDTH=665 HEIGHT=533
    CLASSID="CLSID:8F78D7FC-BAE4-46A4-A79A-052356AB3DD4">
    <PARAM NAME="BorderStyle" VALUE="0">
    <PARAM NAME="MousePointer" VALUE="0">
    <PARAM NAME="TabStop" VALUE="-1">
    <PARAM NAME="Appearance" VALUE="1">
    <PARAM NAME="PaneState" VALUE="3">
    <PARAM NAME="UnitsOfMeasure" VALUE="0">
    </OBJECT>

    </BODY>
    </HTML>

  2. #2
    calhoun is offline Junior Member White Belt
    Join Date
    Jul 2003
    Posts
    5
    I don't believe that this is officially supported by Microsoft. In fact, if you deploy a webpage, you may want to carefully review the licensing for MapPoint to see if what you are doing is legal. That being said, I have done some MapPoint stuff via ASP and JavaScript.

    You need to initialize the mappoint control. After declaring it on the page with the <object> tag, you just have declared a container for the control. Try the following function:
    Code:
    <script language="JavaScript">
      function initializeMappointControl&#40;&#41; &#123;
    	// This function initializes the mappoint control with North America map
    				
    	MappointControl.NewMap&#40;1&#41;;				
      &#125;
    </script>
    Then you need to call that function somewhere in the body of your html (for example, after the closing </object> tag) You can handle all sorts of events from the control, add points, whatever, but I was never able to get rid of a warning that appears in IE when accessing the page. Let me know how that works for you.

    HTH
    calhoun

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    I haven't can do it

    Hi edmistj,

    I tried to do the same what you tell, but I haven't can do it. Putting your code in a normal html page, you don't get to load the activex control, furthermore, the javascrit code of calhoun, it isn't be able to load mappoint due to the container never arrive to load.

    Has you get to integrate Mappoint in a webpage using activex? I really haven't can, and I would like to can do it.

    Thanks in advance. Regards,

    Raymond

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Mapppoint in a browser

    This code works, be sure the MappointController.ocx is in the system32 folder and the ocx is registered using Regsvr32.

    <html>
    <head>
    <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
    <title>Test MapPoint</title>

    <SCRIPT LANGUAGE="JavaScript">
    function initMap()
    {
    MappointControl1.NewMap( 1 );
    }
    </SCRIPT>

    </head>

    <body lang=EN-US>



    Test MapPoint</p>



    </p>




    <object classid="CLSID:8F78D7FC-BAE4-46A4-A79A-052356AB3DD4"
    id=MappointControl1 width=192 height=192>
    <param name=BorderStyle value=0>
    <param name=MousePointer value=0>
    <param name=TabStop value=-1>
    <param name=Appearance value=1>
    <param name=PaneState value=3>
    <param name=UnitsOfMeasure value=0>
    </object>
    </p>
    <SCRIPT>
    initMap();
    </SCRIPT>
    </body>

    </html>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can I use a hyperlink without saving as a webpage
    By Dan Haglund in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 10-24-2005, 01:55 PM
  2. adding locations to mappoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-12-2004, 03:01 PM
  3. ActiveX within a Webpage
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-07-2003, 03:46 PM
  4. adding POI's to mappoint
    By Jamez_Warner in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-22-2003, 09:52 AM
  5. Multiple places in same location on webpage
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-06-2002, 05:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96