User Tools

Site Tools


map_suite_android_visualizing_data

Map Suite Android Visualizing Data

Video Overview

Visualization
Visualizing Data(Xamarin Forms)

Overview

The visualization ability of Map Suite Android Edition can be customized to show information exactly the way you want! It’s possible to filter regions by attribute, display graphs of important data, create a custom style with your own icons, show frequency of events, map intensity, and more.

Visualization Styles

Select the layer visualization style by tapping the menu icon in the upper-left corner.

The Settings dialog can be accessed by tapping the gear icon on the menu in the upper-right corner. In this dialog, it is possible to change the Value that sets the criteria.

Cluster Style – Instead of displaying every point, Cluster Style merges multiple data points into a cluster. In this example, the number of earthquakes is shown. For regions with many earthquakes, one larger cluster is displayed.

Custom Style – Map Suite Android Edition is extremely versatile. We open up the API to allow you to create a custom style that meets your specific needs. This Custom Style example that displays weather was built to show you that anything is possible.

Filter Style – Only shows features that meet a certain criteria. In this example, we use the name of US states. When the name of the state is entered, the state is displayed in the style.

Class Break Style – Similar to Filter Style, but instead of either showing or not showing a feature, Class Break Style displays features differently depending on what range the value falls into. Here we show U.S. states colorized based upon population, with blue representing a lowly populated state, red a highly populated one, and other colors representing states in between.

Dot Density Style – A visual representation of density by dots. The dots are randomly spread out across the feature. The dots in our example represent the density of that state, not where the population is located in that state.

Isoline Style – Delineates regions of similar values. We show regions that have experienced a similar magnitude of earthquake in the same color and separate those regions with isolines.

Heatmap – Creates a radius around points, with color corresponding to the value. In our example, we show earthquakes with a colored radius corresponding to the magnitude.

Icon Style – Displays icons on the map, such as vehicles.

A Look at the Code

SplashActivity is the MainLauncher, meaning that it will run when the program is opened and display the splash screen. After checking for the sample data, MainActivity is called. MainActivity.cs includes SliderView, which sets up the sliding menu, and ListView, which is a Xamarin class used to show the Style List in the menu. In the SampleListViewItemClick function, the currentSample is set to the style that was tapped.

BaseSample is the base class of all the samples. Title sets the header at the top of the screen. MapView is the Map Suite map controller. Each of the style samples have an InitializeMap function that sets up the map for display.

map_suite_android_visualizing_data.txt · Last modified: 2016/01/12 05:47 by tgwikiupdate