User Tools

Site Tools


map_suite_mvc_edition_miscellaneous_samples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_mvc_edition_miscellaneous_samples [2015/09/06 03:20]
admin [Draw Custom Exception]
map_suite_mvc_edition_miscellaneous_samples [2015/10/10 07:31] (current)
Line 1: Line 1:
-====== ​Map_Suite_MVC_Edition_Miscellaneous_Samples ​====== +====== ​ Map Suite MVC Edition Miscellaneous Samples  ​====== 
- +<div sampleitem>​ 
-====Context Menu with Sub Menu==== +==== Context Menu with Sub Menu ==== 
- +<div screenshot>​ 
-{{mvcedition:​codesamples:​Map Suite Web Edition Sample Context Menu with Sub Menu.png?​300x180}} ​+{{mvcedition:​codesamples:​Map Suite Web Edition Sample Context Menu with Sub Menu.png?​300x180}} 
 +</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_WebEditionSample_ContextMenuWithSubMenu_CS.zip|View Source]] 
 +{{filehistory:​WebEditionSample ContextMenuWithSubMenu CS 141211.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: MVC \ Web]]
 \\ \\
-[[Source_Code_WebEditionSample_ContextMenuWithSubMenu_CS.zip|View Source]] | +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
-{{:​File:​WebEditionSample ContextMenuWithSubMenu CS 141211.zip|C#​ Download}} | +</​div>​
-[[Map Suite Samples Alternate Languages|Need it in another language?]] |  +
-[[Map Suite Web Edition|Web]] \\  +
-\\  +
-[[Map Suite Samples Applies To|Applies To: MVC \ Web]] +
 Based on a discussion forum request, today'​s web project shows you how to add sub menus to ContextMenu. This is a built-in function in all of the most recent daily builds of Map Suite, which you can download from the ThinkGeo Customer Portal. This project also demonstrates how to enable the ContextMenu'​s auto wrap feature when you click on the edges of the map.  Based on a discussion forum request, today'​s web project shows you how to add sub menus to ContextMenu. This is a built-in function in all of the most recent daily builds of Map Suite, which you can download from the ThinkGeo Customer Portal. This project also demonstrates how to enable the ContextMenu'​s auto wrap feature when you click on the edges of the map. 
 +</​div>​ 
 +</​div>​
  
 ---- ----
- +<div sampleitem>​ 
-====Custom Scale Bar==== +==== Custom Scale Bar ==== 
- +<div screenshot>​ 
-{{mvcedition:​codesamples:​Map Suite Web Edition Sample Custom Scale Bar.jpg?​300x180}} ​+{{mvcedition:​codesamples:​Map Suite Web Edition Sample Custom Scale Bar.jpg?​300x180}} 
 +</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_WebEditionSample_CustomScaleBar_CS_100810.zip|View Source]] 
 +{{filehistory:​WebEditionSample_CustomScaleBar_CS_100810.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]]
 \\ \\
-[[Source_Code_WebEditionSample_CustomScaleBar_CS_100810.zip|View Source]] | +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
-{{:​File:​WebEditionSample_CustomScaleBar_CS_100810.zip|C#​ Download}} | +</​div>​
-[[Map Suite Samples Alternate Languages|Need it in another language?]] |  +
-[[Map Suite Web Edition|Web]] \\  +
-\\  +
-[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]] +
 In today’s Web project, we learn how to extend ScaleBarAdornmentLayer to create a custom scale bar that is based on a projection of choice instead of the projection of the map. This can be useful when the displayed projection of the map has highly distortable distances especially at high latitudes such as Spherical Mercator (used by Google Map, Virtual Earth, Yahoo maps etc). Using a scale bar based on distance geometry of the Geodetic (WGS84) projection will give a more accurate result. Note that the CustomScaleBar class is based on MapSuiteCore and can be used in any other versions of MapSuite such as Desktop. In today’s Web project, we learn how to extend ScaleBarAdornmentLayer to create a custom scale bar that is based on a projection of choice instead of the projection of the map. This can be useful when the displayed projection of the map has highly distortable distances especially at high latitudes such as Spherical Mercator (used by Google Map, Virtual Earth, Yahoo maps etc). Using a scale bar based on distance geometry of the Geodetic (WGS84) projection will give a more accurate result. Note that the CustomScaleBar class is based on MapSuiteCore and can be used in any other versions of MapSuite such as Desktop.
 +</​div>​ 
 +</​div>​
  
 ---- ----
- +<div sampleitem>​ 
-====Draw Custom Exception==== +==== Draw Custom Exception ==== 
- +<div screenshot>​ 
-{{mvcedition:​codesamples:​Map Suite Web Edition Sample Draw Custom Exception.png?​300x180}} ​+{{mvcedition:​codesamples:​Map Suite Web Edition Sample Draw Custom Exception.png?​300x180}} 
 +</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_DesktopEditionSample_DrawCustomException_CS_100127.zip|View Source]] 
 +{{filehistory:​DesktopEditionSample_DrawCustomException_CS_100127.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]]
 \\ \\
-[[Source_Code_DesktopEditionSample_DrawCustomException_CS_100127.zip|View Source]] | +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
-{{:​File:​DesktopEditionSample_DrawCustomException_CS_100127.zip|C#​ Download}} | +</​div>​
-[[Map Suite Samples Alternate Languages|Need it in another language?]] |  +
-[[Map Suite Desktop Edition|Desktop]] \\  +
-\\  +
-[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]] +
 This sample shows how you can suppress and draw exceptions in desktop overlays instead of throwing them. There is a little-known feature in the Map Suite Desktop Edition Overlay class that allows you to draw an exception in the event an exception is thrown during the drawing process. We have a default image we draw in this case; however, you can override this using the DrawExceptionCore method and draw whatever you want. By default we always throw expections, but to start drawing them you can use the Overlay.DrawExceptionMode property. This sample shows how you can suppress and draw exceptions in desktop overlays instead of throwing them. There is a little-known feature in the Map Suite Desktop Edition Overlay class that allows you to draw an exception in the event an exception is thrown during the drawing process. We have a default image we draw in this case; however, you can override this using the DrawExceptionCore method and draw whatever you want. By default we always throw expections, but to start drawing them you can use the Overlay.DrawExceptionMode property.
 +</​div>​ 
 +</​div>​
  
 ---- ----
- +<div sampleitem>​ 
- +==== Interact with Map Points ==== 
-====Interact with Map Points==== +<div screenshot>​ 
- +{{mvcedition:​codesamples:​Map Suite Web Edition Sample Interact with Map Points.png?​300x180}} 
-{{mvcedition:​codesamples:​Map Suite Web Edition Sample Interact with Map Points.png?​300x180}} ​+</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_WebEditionSample_InteractWithMapPoints_CS_120130.zip|View Source]] 
 +{{filehistory:​WebEditionSample_InteractWithMapPoints_CS_120130.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: MVC \ Web]]
 \\ \\
-[[Source_Code_WebEditionSample_InteractWithMapPoints_CS_120130.zip|View Source]] | +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
-[[:​File:​WebEditionSample_InteractWithMapPoints_CS_120130.zip|C#​ Download]] | +</​div>​
-[[Map Suite Samples Alternate Languages|Need it in another language?]] |  +
-[[Map Suite Web Edition|Web]] \\  +
-\\  +
-[[Map Suite Samples Applies To|Applies To: MVC \ Web]] +
 In this web-based project, we show you how to do a two-way interaction between the features in an InMemoryFeatureLayer and their information in GridView. If you click on a point on the map, you will see the corresponding item highlighted in the GridView. Or vice-versa; you can click on an item in the GridView and you will see its feature highlighted on the map. In this web-based project, we show you how to do a two-way interaction between the features in an InMemoryFeatureLayer and their information in GridView. If you click on a point on the map, you will see the corresponding item highlighted in the GridView. Or vice-versa; you can click on an item in the GridView and you will see its feature highlighted on the map.
 +</​div>​ 
 +</​div>​
  
 ---- ----
- +<div sampleitem>​ 
- +==== MDI Form ==== 
-====MDI Form==== +<div screenshot>​ 
- +{{mvcedition:​codesamples:​Map Suite Web Edition Sample MDI Form.jpg?​300x180}} 
-{{mvcedition:​codesamples:​Map Suite Web Edition Sample MDI Form.jpg?​300x180}} ​+</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_DesktopEditionSample_MDIform_CS_100405.zip|View Source]] 
 +{{filehistory:​DesktopEditionSample_MDIform_CS_100405.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]]
 \\ \\
-[[Source_Code_DesktopEditionSample_MDIform_CS_100405.zip|View Source]] | +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
-[[:​File:​DesktopEditionSample_MDIform_CS_100405.zip|C#​ Download]] | +</​div>​
-[[Map Suite Samples Alternate Languages|Need it in another language?]] |  +
-[[Map Suite Desktop Edition|Desktop]] \\  +
-\\  +
-[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]] +
 In today’s project, we show how to have the WinformsMap control in a MDI form. Using an MDI form with a map background can represent a challenge. You will see in this project the technique to display properly a child form on top of the map. You can also notice how the map is accessed from the child form by plotting points on it from the child form. In today’s project, we show how to have the WinformsMap control in a MDI form. Using an MDI form with a map background can represent a challenge. You will see in this project the technique to display properly a child form on top of the map. You can also notice how the map is accessed from the child form by plotting points on it from the child form.
 +</​div>​ 
 +</​div>​
  
 ---- ----
- +<div sampleitem>​ 
- +==== Topology Validation ==== 
-====Topology Validation==== +<div screenshot>​ 
- +{{mvcedition:​codesamples:​Map Suite Desktop Edition Sample Topology Validation.jpg?​300x180}} 
-{{mvcedition:​codesamples:​Map Suite Desktop Edition Sample Topology Validation.jpg?​300x180}} ​+</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_DesktopEditionSample_TopologyValidation_CS_120904.zip|View Source]] 
 +{{filehistory:​DesktopEditionSample TopologyValidation CS 120904.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]]
 \\ \\
-[[Source_Code_DesktopEditionSample_TopologyValidation_CS_120904.zip|View Source]] | +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
-[[:​File:​DesktopEditionSample TopologyValidation CS 120904.zip|C#​ Download]] | +</​div>​ 
-[[Map Suite Samples Alternate Languages|Need it in another language?]] |  +Starting with version 6.0.113.0, Map Suite includes topology validation capabilities. ​ This Topology Validator sample application makes it simple to visualize and test topology rules. You simply select the case you want to test, use our drawing tools to create the shapes necessary, and then hit the play button to run the test. The error cases are highlighted on the screen and saved to the test, and their Well-Known Text (WKT) is copied to your clipboard. At any time, you can view or edit the WKT which makes up the case. We save our test cases as XML files that contain not only the test case features but also the errors. This makes it a snap for you to share your cases with us or other colleagues. ​ \\  \\ For more details including a list of topology cases that you can test, see [[http://​gis.thinkgeo.com/​Support/​DiscussionForums/​tabid/​143/​aff/​16/​aft/​10443/​afv/​topic/​Default.aspx#​topology|this article]] or watch the [[http://​youtu.be/​IuLGTRsVtQc|video overview]] 
-[[Map Suite Desktop Edition|Desktop]] \\  +</​div>​ 
-\\  +</​div>​
-[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]] +
- +
-Starting with version 6.0.113.0, Map Suite includes topology validation capabilities. ​ This Topology Validator sample application makes it simple to visualize and test topology rules. You simply select the case you want to test, use our drawing tools to create the shapes necessary, and then hit the play button to run the test. The error cases are highlighted on the screen and saved to the test, and their Well-Known Text (WKT) is copied to your clipboard. At any time, you can view or edit the WKT which makes up the case. We save our test cases as XML files that contain not only the test case features but also the errors. This makes it a snap for you to share your cases with us or other colleagues. ​ \\  \\ For more details including a list of topology cases that you can test, see [[http://​gis.thinkgeo.com/​Support/​DiscussionForums/​tabid/​143/​aff/​16/​aft/​10443/​afv/​topic/​Default.aspx#​topology|this article]] or watch the {{Videolink|[[http://​youtu.be/​IuLGTRsVtQc|video overview]]}} +
  
 ---- ----
- +<div sampleitem>​ 
- +==== Use Map with MVC Framework ==== 
-====Use Map with MVC Framework==== +<div screenshot>​ 
- +{{mvcedition:​codesamples:​Map Suite Web Edition Sample Use Map with MVC Framework.png?​300x180}} 
-{{mvcedition:​codesamples:​Map Suite Web Edition Sample Use Map with MVC Framework.png?​300x180}} ​+</​div>​ 
 +<div content>​ 
 +<div download_viewsource_buttons>​ 
 +[[Source_Code_WebEditionSample_UseMapWithMVCFramework_CS.zip|View Source]] 
 +{{filehistory:​WebEditionSample_UseMapWithMVCFramework_CS_141211.zip|C#​ Download}} 
 +</​div>​ 
 +<div sample_otherlinks>​ 
 +[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]]
 \\ \\
-[[Source_Code_WebEditionSample_UseMapWithMVCFramework_CS.zip|View Source]] | +[[Map Suite Samples Alternate Languages | Need it in another language?​]] 
-[[:​File:​WebEditionSample_UseMapWithMVCFramework_CS_141211.zip|C#​ Download]] | +</​div>​
-[[Map Suite Samples Alternate Languages|Need it in another language?]] |  +
-[[Map Suite Web Edition|Web]] \\  +
-\\  +
-[[Map Suite Samples Applies To|Applies To: MVC \ Desktop \ Web \ Silverlight \ Service \ Wpf]] +
 This project demonstrates how to create a web-based map using Microsoft ASP.NET MVC 1.0 and Map Suite Web Edition. To meet the requirements of MVC, we inherit the interface IMapInitializer in the controller, which has a function InitializeMap that is overridden in the controller. We then implement the class "​MapInitializerHelper"​ to initialize the map instance. This project demonstrates how to create a web-based map using Microsoft ASP.NET MVC 1.0 and Map Suite Web Edition. To meet the requirements of MVC, we inherit the interface IMapInitializer in the controller, which has a function InitializeMap that is overridden in the controller. We then implement the class "​MapInitializerHelper"​ to initialize the map instance.
- +</​div>​ 
 +</​div>​
  
 ---- ----
 +{{page>​map_suite_services_edition_miscellaneous_samples}}
map_suite_mvc_edition_miscellaneous_samples.1441509613.txt.gz · Last modified: 2015/09/06 03:20 (external edit)