天天看点

Intelligent landing page for AIMS/MapGuide Ajax viewer

It works by taking a copy of the WebLayout stored in the Library repository and changing the <CenterX/>, <CenterY/> and <Scale/> elements. The updated XML is written into the Session and is used as the target when the page is ultimately loaded.

Intelligent landing page for AIMS/MapGuide Ajax viewer

2. Query, zoom to and highlight by filter string. It accepts layer name, keyFieldID and id value, for following URL, map viewer zooms to the objects corresponding to “Autogenerated_SDF_ID in (1812,1813)” in the layer Parcels, highlighted if “highlight=1”.

<a href="http://localhost/MgViewerExtention/Default.aspx?Layer=Parcels&amp;KeyField=Autogenerated_SDF_ID&amp;ListId=1812,1813&amp;highlight=1">http://localhost/MgViewerExtention/Default.aspx?Layer=Parcels&amp;KeyField=Autogenerated_SDF_ID&amp;ListId=1812,1813&amp;highlight=1</a>

Intelligent landing page for AIMS/MapGuide Ajax viewer

3. Filter features shown on map. You may have thousands even millions of features in a data source, but sometime you do not need to show all of them on map. With a filter string in URL, you can filter the features in MapGuide viewer when the viewer shows up. With following URL, I only show the parcels which Autogenerated_SDF_ID great than 1000:

Intelligent landing page for AIMS/MapGuide Ajax viewer

<a href="http://adndevblog.typepad.com/files/mgviewerextention.zip">Download MgViewerExtention</a>

邮箱:[email protected] 

转载请保留此信息。

本文转自峻祁连. Moving to Cloud/Mobile博客园博客,原文链接:http://www.cnblogs.com/junqilian/archive/2012/09/28/2707192.html,如需转载请自行联系原作者