====== Map Suite Services Edition Labeling Samples ======
==== Decimal Degrees Formatting ====
{{servicesedition:codesamples:Map Suite Services Edition Sample Decimal Degrees Formatting.jpg?300x180}}
[[Source_Code_ServicesEditionSample_DecimalDegreesFormatting_CS_091007.zip|View Source]] {{filehistory:ServicesEditionSample_DecimalDegreesFormatting_CS_091007.zip|C# Download}}
[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf ]] \\ [[Map Suite Samples Alternate Languages | Need it in another language?]]
The purpose of this project is to complete the static class DecimalDegreesHelper. This class offers functions to go to and from Decimal Degrees but it lacks the functions handling various formats such as Degrees Decimal Minutes and Degrees Minutes Decimal Seconds. Those formats can be output by different GPS devices and it is handy to know how to manipulate them and convert them to Decimal Degrees, the only format that can be input into a GIS or Mapping application.
----
==== Label to Show Location ====
{{servicesedition:codesamples:Map Suite Services Edition Sample Label to Show Location.jpg?300x180}}
[[Source_Code_ServicesEditionSample_LabelToShowLocation_CS_091218.zip|View Source]] {{filehistory:ServicesEditionSample_LabelToShowLocation_CS_091218.zip|C# Download}}
[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf]] \\ [[Map Suite Samples Alternate Languages | Need it in another language?]]
This project shows how to use layers not for displaying but for getting location information on the current extent of the map. Getting information of the administrative divisions of the current extent of the map is convenient because it gives a spatial clue when the map is zoomed in too close to have any major features recognizable. In this project, we use the WorldMapKit as a background and the shapefiles state and counties are used for displaying the spatial clue.
----
==== Labeling Based On Columns ====
{{servicesedition:codesamples:Map Suite Services Edition Sample Labeling Based On Columns.JPG?300x180}}
[[Source_Code_ServicesEditionSample_LabelingBasedOnColumns_CS_090807.zip|View Source]] {{filehistory:ServicesEditionSample_LabelingBasedOnColumns_CS_090807.zip|C# Download}}
[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf]] \\ [[Map Suite Samples Alternate Languages | Need it in another language?]]
As a developer developing a mapping application, you may encounter point based shapefile for labeling. All the characteristics for labeling such as font, size, angle, color can be found in the attribute information of the shapefile itself. This project will show how to create a custom TextStyle that will get the value for those different columns and display each feature accordingly.
----
==== Multi Column Labeling ====
{{servicesedition:codesamples:Map Suite Services Edition Sample Multi Column Labeling.jpg?300x180}}
[[Source_Code_ServicesEditionSample_MultiColumnLabeling_CS_090922.zip|View Source]] {{filehistory:ServicesEditionSample_MultiColumnLabeling_CS_090922.zip|C# Download}}
[[Map Suite Samples Applies To|Applies To: Desktop \ Web \ Silverlight \ Services \ Wpf]] \\ [[Map Suite Samples Alternate Languages | Need it in another language?]]
In this project, we show some techniques to label features based on various columns. With the CustomStyles property and CustomColumnFetch event, you will see the flexibility you have to label the way you desire in a few lines of code. In this example, we label volcanoes based on four columns on two lines and using two different font styles.