User Tools

Site Tools


map_suite_mvc_edition_faq_styles

Differences

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

Link to this comparison view

Next revision
Previous revision
map_suite_mvc_edition_faq_styles [2015/08/20 03:08]
127.0.0.1 external edit
map_suite_mvc_edition_faq_styles [2015/09/16 06:08] (current)
admin [Can I create isolines (a.k.a. contour lines) with Map Suite?]
Line 1: Line 1:
-====== ​Map_Suite_MVC_Edition_FAQ_Styles ​======+====== ​Map Suite MVC Edition FAQ Styles ​======
  
-<​noinclude>​ 
-{{article rating}} 
-</​noinclude>​ 
 ====Is there something faster than the ValueStyle?​==== ====Is there something faster than the ValueStyle?​====
 This question has a corresponding sample application(s) associated with it.  This question has a corresponding sample application(s) associated with it. 
Line 14: Line 11:
 [[Map Suite MVC Edition Styles Samples#​ClusterPointStyle|Sample:​ClusterPointStyle]] [[Map Suite MVC Edition Styles Samples#​ClusterPointStyle|Sample:​ClusterPointStyle]]
  
-In this project, you will see how to use a custom style, ClusterPointStyle for clustering various features into one. Sometimes, the map may have many features stacked on top of each other at high zoom levels making the map too busy and difficult to read. Clustering is a usefull technique in those situation making the map more readable. It groups together various features into one symbol with the count of all the features being labeled.<br> +In this project, you will see how to use a custom style, ClusterPointStyle for clustering various features into one. Sometimes, the map may have many features stacked on top of each other at high zoom levels making the map too busy and difficult to read. Clustering is a usefull technique in those situation making the map more readable. It groups together various features into one symbol with the count of all the features being labeled. 
-There are many ways for finding the location of the cluster point. One of the simplest is to use the center of gravity of all the clustered features as used in this project.<br>+\\ 
 +\\ 
 +There are many ways for finding the location of the cluster point. One of the simplest is to use the center of gravity of all the clustered features as used in this project. 
 +\\ 
 +\\
 In this project, we are using volcanoes because natural phenomenon are usually good candidates for being clustered. In this project, we are using volcanoes because natural phenomenon are usually good candidates for being clustered.
  
Line 37: Line 38:
 [[Map_Suite_MVC_Edition_Styles_Samples#​WordWrapped_TextStyle|Sample:​WordWrapped TextStyle]] [[Map_Suite_MVC_Edition_Styles_Samples#​WordWrapped_TextStyle|Sample:​WordWrapped TextStyle]]
  
-In the Discussion Forum post “Display word-wrapped text”, there is a discussion on how to implement a TextStyle doing word wrapping. In this project, you will actually find a working implementation. Notice that by using the class WordWrappingTextStyle,​ word-wrapping is applied according the proportion of the size of the text to the size of the bounding box of the feature to label. This means that the label can be word-wrapped or not depending on the zoom level.<br> +In the Discussion Forum post “Display word-wrapped text”, there is a discussion on how to implement a TextStyle doing word wrapping. In this project, you will actually find a working implementation. Notice that by using the class WordWrappingTextStyle,​ word-wrapping is applied according the proportion of the size of the text to the size of the bounding box of the feature to label. This means that the label can be word-wrapped or not depending on the zoom level. 
-You can find the discussion forum post on that topic at:<br>+\\ 
 +\\ 
 +You can find the discussion forum post on that topic at: 
 +\\
 http://​gis.thinkgeo.com/​Support/​DiscussionForums/​tabid/​143/​aff/​21/​aft/​6421/​afv/​topic/​Default.aspx http://​gis.thinkgeo.com/​Support/​DiscussionForums/​tabid/​143/​aff/​21/​aft/​6421/​afv/​topic/​Default.aspx
  
Line 180: Line 184:
  
 This Web project is similar to the project “Distance Line Style”. Here we show how to use a projection of choice different from the projection used on the map. For example, you may have your map using Google map as a background. Google map uses Spherical Mercator projection which is not ideal for distance measurements,​ that is why using a more appropriate projection for distance measurement such as State Plane will give more accurate results. The CustomDistanceLineStyle inheriting from LIneStyle has the logic built in to have the distance calculated based on a projection of choice instead of the projection of the map. This Web project is similar to the project “Distance Line Style”. Here we show how to use a projection of choice different from the projection used on the map. For example, you may have your map using Google map as a background. Google map uses Spherical Mercator projection which is not ideal for distance measurements,​ that is why using a more appropriate projection for distance measurement such as State Plane will give more accurate results. The CustomDistanceLineStyle inheriting from LIneStyle has the logic built in to have the distance calculated based on a projection of choice instead of the projection of the map.
 +\\
 As for the previous project “Distance Line Style”, you can see how the DrawCore function is overridden for the a specific need of style: displaying the distance label on each line segment making up a LineShape. In addition to the overriding of the DrawCore function, you will find useful some geometry functions such as GetPointOnLine to find the midpoint of a line segment and GetAngleFromTwoVertices to incline correctly the labels according to the orientation of each line segment. You will notice that the CustomDistanceLineStyle works for features made of LineShape and you will have to slightly modify to have it working with MultilineShape. As for the previous project “Distance Line Style”, you can see how the DrawCore function is overridden for the a specific need of style: displaying the distance label on each line segment making up a LineShape. In addition to the overriding of the DrawCore function, you will find useful some geometry functions such as GetPointOnLine to find the midpoint of a line segment and GetAngleFromTwoVertices to incline correctly the labels according to the orientation of each line segment. You will notice that the CustomDistanceLineStyle works for features made of LineShape and you will have to slightly modify to have it working with MultilineShape.
  
Line 222: Line 227:
 [[Map_Suite_MVC_Edition_Styles_Samples#​Isolines|Sample:​Isolines]] [[Map_Suite_MVC_Edition_Styles_Samples#​Isolines|Sample:​Isolines]]
  
-Yes. Starting with build 5.0.87.0 of Map Suite, you can add isolines to your applications with Map Suite -- please see the code sample linked above. For the uninitiated,​ isolines are a way to visualize breaks between different groups of data such as elevation levels, soil properties, or just about anything else you can imagine. ​ The above code sample also shows the various steps in creating isolines, including the gathering of point data, creating a grid using interpolation,​ and finally, picking your isoline break levels. ​ We also quickly dive into some more advanced options such as generating isolines on the fly. To bring this all together, check out our {{Videolink|[[Media:​ServicesEditionSample_Isolines_110809.wmv|instructional video]]}} that will walk you through the process of setting up and working with isolines in Map Suite.+Yes. Starting with build 5.0.87.0 of Map Suite, you can add isolines to your applications with Map Suite -- please see the code sample linked above. For the uninitiated,​ isolines are a way to visualize breaks between different groups of data such as elevation levels, soil properties, or just about anything else you can imagine. ​ The above code sample also shows the various steps in creating isolines, including the gathering of point data, creating a grid using interpolation,​ and finally, picking your isoline break levels. ​ We also quickly dive into some more advanced options such as generating isolines on the fly. To bring this all together, check out our [[http://​wiki.thinkgeo.com/​mediawiki/​images/​8/​8c/​ServicesEditionSample_Isolines_110809.wmv|instructional video]] that will walk you through the process of setting up and working with isolines in Map Suite.
  
-[[Category:​Map Suite MVC Edition]] [[Category:​Web GIS]] [[Category:​Desktop GIS]] [[Category:​GIS]] [[Category:​.NET]] 
  
map_suite_mvc_edition_faq_styles.1440040123.txt.gz · Last modified: 2015/08/28 06:14 (external edit)