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

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_mvc_edition_faq_styles [2015/09/02 03:49]
admin [How do I word wrap my labels?]
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 184: 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 226: 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 [[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.
  
  
map_suite_mvc_edition_faq_styles.1441165750.txt.gz · Last modified: 2015/09/02 03:49 by admin