The Web project uses IIS and the ASP.NET service, so you first have toconfigure and start these components before trying to build a project.An application built using MapXtreme v7.0 runs as an ASP.NETapplication under the worker process of IIS. Chances are you alreadyhave experience writing such Web applications and the overall model isthe same with MapXtreme, with the use of additional controls andnamespaces.
I started with an existing example and copied and pasted code fromother examples, plus writing some of my own code, and within a coupleof hours had a reasonable amalgamation of a basic mapping applicationthat might be useful in an enterprise. (I'm better than an entry levelprogrammer, and am knowledgeable in Microsoft programming techniques,but programming isn't my day job.) It was easy enough so that I didn'teven have to consult the documentation in order to piece together asmall but functional application from the sample and tutorialapplications.
Building an application from scratch, however, requires some upfronttime to learn and understand the MapXtreme programming model. TheMapXtreme Session is the starting point for all MapXtreme applications.It manages the initialization of resources needed for a MapXtremeapplication. You access the MapXtreme Session by calling theMapInfo.Engine.Session.Current() method. That ensures that each threadhas a MapXtreme Session object available.
MapXtreme provides three Web controls - MapControl, LayerControl andLegendControl and a number of map tools. The Web controls showcontent, such as a map, a list of maps and label layers and theirproperties or a legend. The tools interact with the MapControl tochange the view of the map or to select specific features on the map.
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-27900-3.html
我的烊烊
哈哈