Supplementary description of WebGIS System Design and Implementation

Source: Internet
Author: User
The Design and Implementation of the WebGIS system posted yesterday did not implement the final map rendering, because of the problem of COM interaction. After reading the edison1024 message and MapX implementation, I found that there was a problem with my design. I tried to use mapservice to create a mapengine, then, create a form and render the map in mapengine. In this way, if it is a. Net class or a com-based non-visual DLL, there should be no problem. But for ActiveX, there is a problem.

According to the implementation of MapX in edison1024, another form object is created using the host that creates the remoting service, and then its mapengine object (pointing to a specific form) is called in mapengine:

Public   Shared Mapengine As Frmsupermapform

< Stathread () >   Shared   Sub main () Sub Main ()

Dim Chan1 As Tcpchannel
Chan1 =   New Tcpchannel ( 8085 )

Channelservices. registerchannel (chan1)
Remotingconfiguration. registerwellknownservicetype ( GetType (Mapservice ), " Mapservice " , Wellknownobjectmode. Singleton)

Mapengine =   New Frmsupermapform
Application. Run (mapengine)

End sub

The running result is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.