Hexagon Geospatial
MENU

M.App Enterprise Tutorials

Not sure on how to get started or looking for a workflow to get M.App Enterprise up and running. Tutorials provide step by instruction on some of the most common configurations and workflows to get M.App Enterprise configured up and running quickly.
Showing results for 
Search instead for 
Do you mean 

Working with Tutorial: How to display points thematically in Mobile M.App

by sclow on ‎06-19-2019 06:34 AM (76 Views)

Question

How can points be displayed as a thematic in a M.App Enteriprise Mobile M.App?

Answer

 

 

 

Introduction

Displaying the Marker Vector layer thematically in Mobile M.Apps requires the use of images contained in an 'Icons' folder. Knowing attribute values by which the dataset will be classified leads to a step by step process in creating a thematic display of the points.

 

 

Knowing the data

The ‘Crime’ table that this example is based on contains an attribute ‘rucr_ext_d’ which identifies the types of crimes committed. There are five possible values for this attribute: 'ASSAULT', 'ROBBERY', 'THEFT OF VEHICLE', 'THEFT FROM VEHICLE' and 'BREAK AND ENTER'.

 

Preparing the 'Icons' folder

A folder 'Icons' is expected in the shell folder when using custom Icons.

icons.png

 

If you wish to base this Icon on an attribute value then whatever attribute value you have should have a named .png. Additionally, as per the documentation, there should be a @2x, @3x and @4x .png as well.

icons1.png

 

 

Setting up Marker Vector layer to use Icon based on attribute value (ie. RUCR_EXT_D)

Map.xaml

 

<MarkerVectorLayer Entity="Crime_ent" Icon="RUCR_EXT_D" ZIndex="0" MinimumZoomLevel="12" MaximumZoomLevel="20">
			<FeatureInfo Title="Crime Report" Detail="@{RUCR_EXT_D}">
                <NavigateShellAction Icon="Edit" Target="CrimeForm">
                    <Parameter Name="Id" Value="@{Guid}" />
                </NavigateShellAction>
                <NavigateSelectionAction/>
				<NavigateCarSelectionAction/>
            </FeatureInfo>
		</MarkerVectorLayer>

 

Displaying the Thematic points in Mobile M.App

Ensure that all .xaml's that were edited are saved. Zip all necessary files in the shell and upload to the via M.App Enterprise Studio the most recent shell.

 

Launch the Mobile M.App and observe the points are now displayed thematically based on icons and attribute values.

icons2.png

Overview
Contributors