EnumerateResources选项,在Type 中输入 WebLayout,点击提交,如果示例数据装载成功,应该获得如下6个WebLayout:
LibrarySamplesSheboyganLayoutsSheboyganPhp.WebLayout
LibrarySamplesSheboyganLayoutsSheboyganPhpTiled.WebLayout
LibrarySamplesSheboyganLayoutsSheboyganAsp.WebLayout
LibrarySamplesSheboyganLayoutsSheboygan
AspTiled.WebLayout
LibrarySamplesSheboyganLayoutsSheboyganJsp.WebLayout
LibrarySamplesSheboyganLayoutsSheboyganJspTiled.WebLayout
6、安装MapGuide示例程序
下载Mapguide示例Viewer程序dotnetviewersample。在Mapguide Server上安装示例程序dotnetviewersample的步骤如下:
(1)将dotnetviewersample文件夹拷贝到MapGuide WebServer Extention中的www的文件夹中,如果里面没有bin文件夹,则从MapGuide WebServer Extention mapviewernet中的bin拷贝进去,如果有则替换;
(2)在IIS服务中打开mapguide站点,在dotnetviewersample文件夹上点击右键,选择属性,在“目录”标签的“应用程序设置”选项中点击“创建”,点击“确定”完成dotnetviewersample的配置。
配置好示例数据和dotnetviewersample示例
程序后,可在浏览器中查看该示例程序的三种效果:
注:需要先安装DwfViewer
软件才能在Internet Explorer中浏览DWF Viewer效果。
DWF Viewer效果:可以浏览矢量地图数据,只能在Internet Explorer上运行,URL:
httplocalhostmapguidedotnetviewersampledwfviewersample.aspx
AJAX Viewer效果:使用AJAX方式浏览地图数据(非矢量),可在Internet Explorer上或Firefox等浏览器上运行,URL:
httplocalhostmapguidedotnetviewersampleajaxviewersample.aspx
使用分片地图(tiled map)的AJAX Viewer效果:使用分片地图和AJAX方式浏览地图数据(非矢量),可在Internet Explorer上或Firefox等浏览器上运行,URL:
httplocalhostmapguidedotnetviewersampleajaxtiledviewersample.aspx
注:在步骤(2)中,如mapviewernet不是应用程序,需要按照步骤(2)的方式将mapviewernet配置为应用程序。
7、安装MapGuide Studio 2007 试用版
MapGuide Studio 是地图管理工具,用户可以用Studio进行所见即所得的便捷管理,对地图数据进行配
置和管理。MapGuide Studio只能安装在Windows平台。MapGuide Studio不是开源程序,需要购买。
下载autodeskmapguidestudio2007eval.exe安装MapGuide Studio。此版本是60天试用版本。
另外,MapGuide Web Studio提供了MapGuide Studio的部分功能。MapGuide Web Studio位于MapGuideOpenSource安装目录WebServerExtensionswwwwebstudio文件夹中,URL:
httplocalhostmapguidewebstudioindex.html
MapGuide Studio和MapGuide Web Studio登录的站点为:
httplocalhostmapguide
默认用户名 Administrator
默认密码:admin
如果出现版本不兼容的问题,则用Autodesk.MapGuide.Studio.Site.dll替换
更多MapGuide的安装、配置和开发信息请参考资料:
InstallConfigureMgOpenSourceOnWindows.pdf 包含了MapGuide的安装和配置信息。
InstallMapGuideOpenSourceSamples.pdf包含了MapGuide示例数据和示例程序的安装和配置信息。
安装完MapGuide及dotnetviewsample后,在IIS的目录下面,会见到如下的一个文件结构:
在该文件结构中,mapviewer
ajax, mapviewerdwf, mapviewernet三个文件包含特定功能函数的aspx文件,这些aspx文件不能被直接浏览,而是给其它实例,如dotnetviewersample,提供实现的函数,其它实例借助于这些包含特定功能的aspx文件实现自己的操作,即通过传递参数间接调用这aspx文件。
如实例调用实例部分代码:fram