User Tools

Site Tools


map_suite_services_edition_styles_samples

This is an old revision of the document!


Map_Suite_Services_Edition_Styles_Samples

<noinclude> article_rating </noinclude>

Adjusted Scaling Image Style

Screenshot width=78Sample width=66Product Description
map_suite_services_edition_sample_adjusted_scaling_image_style.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: \\ Desktop\\ Web\\ Silverlight \\ Services\\ Wpf\\ The purpose of this project is to address some of the limitations of the ScalingImageStyle that we saw in the project of the same name. As with ScalingImageStyle, with AdjustedScalingImageStyle, you have the icon scaling up and down according to the zoom level; but you can also have the icon pointing correctly to the point feature it represents if for example you are using a pin as an icon. Also, the problem of the height of the image not sizing proportionally to its width has been corrected.

Cached Value Style

Screenshot width=78Sample width=66Product Description
no_screenshot.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ The MapSuite API provides a Value Style as you can see in the sample app “Draw features based on value”. This is a great way to display feature features based on some value of a column. With this style and any other styles offered by the MapSuite API, each time the map has to redraw the value for each feature within the current extent has to be fetched. This can affect the performance especially if a large number of features are used. With CachedValueStyle, the value for each feature is cached into memory to reduce the overhead of having to go and fetch the value for each feature each time the map has to draw. Using this CachedValueStyle has a benefit on performance but you need to pay attention on memory usage.

ClusterPointStyle

Screenshot width=78Sample width=66Product Description
map_suite_services_edition_sample_cluster_point_style.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ 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.

In this project, we are using volcanoes because natural phenomenon are usually good candidates for being clustered.

Decimal Degrees Formatting

Screenshot width=78Sample width=66Product Description
map_suite_services_edition_sample_decimal_degrees_formatting.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ 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.

Displaying One-Way Streets

Screenshot width=78Sample width=66Product Description
map_suite_services_edition_sample_display_one_way_streets.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ In the Discussion Forum Post “Drawing one-way streets in the map”, we have a question on how to display an arrow on a street that is one way as Google Map does. In this project, we show the solution by creating a LineStyle specifically for that purpose. We take the shapefile “AustinWithOneWayRoad.shp” from the sample app “Route On One-Way Roads” of Map Suite Routing Extension to display the arrow according to the traffic direction on the one-way streets

Doughnut Point Style

Screenshot width=78Sample width=66Product Description
map_suite_services_edition_sample_doughnut_point_style.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ This project shows how to create a doughnut point style as this style is not offered by the MapSuite API. DonutPointStyle inherits from PointStyle and you will notice that in the overridden method DrawCore, no reference to any GDI + API is used. That means that this style is drawing system independent.

Feature Centric Style

Screenshot width=78Sample width=66Product Description
map_suite_services_edition_sample_feature_centric_style.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ This project got inspired for looking at the sample “ClassBreakStyle” of How Do I demo apps. Using a ClassBreakStyle, the data is displayed based on what class each feature belongs to. Using a custom FeatureCentricStyle, each feature is displayed in relation to a central feature. In this example, it shows all the countries that have a comparable population to a reference country.

To do that, we use a custom style FeatureCentricAreaStyle inheriting from AreaStyle and we override DrawCore and GetRequiredColumnNamesCore methods. The code in DrawCore loops thru all the features and checks if the value for a specified column is within a certain range of the central feature.

You can see how you could apply and extent the logic of this custom style to be used in Real Estate for example, where you could see all the properties that are comparable according to some criteria to a selected property.

Flashing Point Style

Screenshot width=78Sample width=66Product Description
map_suite_services_edition_sample_flashing_point_style.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ In this project, we explore how to create a point style that flashes. Here we take the example of a vehicle moving around based on GPS location and flashes when entering prohibited zones. I think that this project will inspire people working on building a vehicle tracking application. This project is a general solution for a Servicess edition. Notice that we are using two MapEngines with one only for drawing the flashing vehicle to avoid redrawing the other layers at each flashing.

Later, we will publish projects specifically adapted for the Desktop and Web editions.

Hybrid TextStyle

Screenshot width=78Sample width=66Product Description
map_suite_services_edition_sample_hybrid_textstyle.jpg View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ This project is a follow up to the Discussion Forum post
http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6652/afv/topic/Default.aspx
Rotating the feature text (similar to wordwrap).

In this project, we create a new Text Style combining word wrapping that we saw in the project http://code.thinkgeo.com/projects/show/wordwrapped and text rotation. You can see the labels word wrapping and rotating in harmony with the resizing and rotating of the shapes.

Image Style

Screenshot width=78Sample width=66Product Description
View Source

C# Download

Need it in another language?
Services \\ \\ Applies To: Desktop \\ Web \\ Silverlight \\ Services \\ Wpf \\ As you probably already know, using the Map Suite API, you can easily display a point-based feature as an image. But how do you do the same thing for a line or a polygon-based feature? In this WPF project, we show you how to create custom Image Styles for both line and polygon features. With the new ImageAreaStyle, you can display a polygon feature that uses an image as its fill. You can see how an image for forest and water is used in the sample project. And with the new ImageLineStyle, you can do the same thing with line features. You'll see how an image of a pavement texture is used to represent streets.

Isolines

Screenshot width=90Sample width=66Product Description
map_suite_services_edition_sample_isolines.jpg
map_suite_services_edition_styles_samples.1440040124.txt.gz · Last modified: 2015/09/08 02:41 (external edit)