This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
map_suite_windows_phone_edition_faq_labeling [2015/08/20 03:08] 127.0.0.1 external edit |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Map_Suite_Windows_Phone_Edition_FAQ_Labeling ====== | ||
- | |||
- | <noinclude> | ||
- | {{article rating}} | ||
- | </noinclude> | ||
- | ====How can I display decimal degrees as degrees, minutes and seconds?==== | ||
- | This question has a corresponding sample application(s) associated with it. | ||
- | |||
- | [[Map_Suite_Windows_Phone_Edition_Labeling_Samples#Decimal Degrees Formatting|Sample:Decimal Degrees Formatting]] | ||
- | |||
- | 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. | ||
- | |||
- | ====How do I control how labels are displayed based on fields in the data?==== | ||
- | This question has a corresponding sample application(s) associated with it. | ||
- | |||
- | [[Map_Suite_Windows_Phone_Edition_Labeling_Samples#Labeling Based On Columns|Sample:Labeling Based On Columns]] | ||
- | |||
- | 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. | ||
- | |||
- | ====How do I adjust the size of the labels based on feature column data?==== | ||
- | This question has a corresponding sample application(s) associated with it. | ||
- | |||
- | [[Map_Suite_Windows_Phone_Edition_Labeling_Samples#Labeling based on size|Sample:Labeling based on size]] | ||
- | |||
- | In the sample app “Draw thematic features” of the “How Do I” samples, we show how to use the ClassBreakStyle to display countries based of what population range they belong to. In today’s project, we show some more advanced uses of ClassBreakStyle to show how to label countries based on the area. You will notice that we also take advantage of the various zoom level sets for labeling purposes. The result is an eyed pleasing labeling of the countries with the size proportional to the countries’ area with more labels of smaller countries appearing as you zoom in. | ||
- | |||
- | ====How do I use multiple columns in one label?==== | ||
- | This question has a corresponding sample application(s) associated with it. | ||
- | |||
- | [[Map_Suite_Windows_Phone_Edition_Labeling_Samples#Multi_Column_Labeling|Sample:Multi Column Labeling]] | ||
- | |||
- | 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. | ||
- | |||
- | ====How do I display multi labels for a given feature?==== | ||
- | This question has a corresponding sample application(s) associated with it. | ||
- | |||
- | [[Map_Suite_Windows_Phone_Edition_Labeling_Samples#Multiple_Labels|Sample:Multiple Labels]] | ||
- | |||
- | This sample shows how you can display multiple labels for a given point or feature. You can do this by setting a single TextStyle or multiple TextStyles. If you use a single TextStyle, you can simply use a pattern like "[[ColumnName1]][ColumnName2]" and when Map Suite displays the text it will combine the values of the columns in your pattern. If you use a different styling method, you will need to manually control the offset of each piece of text to avoid overlapping. | ||
- | |||
- | For more information you can see the discussion forum post below: | ||
- | http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6955/afv/topic/Default.aspx | ||
- | |||
- | ====How do I display multi line labeling?==== | ||
- | This question has a corresponding sample application(s) associated with it. | ||
- | |||
- | [[Map_Suite_Windows_Phone_Edition_Labeling_Samples#MultiLine_Labeling|Sample:MultiLine Labeling]] | ||
- | |||
- | For labeling purpose, TextStyle has a property called LabelAllPolygonParts that will label all the parts making up a polygon based feature. Unfortunately, we don’t have an equivalent API for labeling all the parts of a line based feature. But thanks to the flexible framework of Map Suite, we show in this Wpf sample how easily you can expand the TextStyle class to allow this labeling capability. Look at the custom class MultiLinetextStyle and how DrawCore function is overridden to have the expected labeling behavior. | ||
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.