This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
map_suite_mvc_edition_faq_styles [2015/09/02 03:48] admin [How do I cluster multiple points into one point for display?] |
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 38: | 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 181: | 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 223: | 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. |