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 

How to: Display thematic legend entry in Desktop M.Apps

by Technical Evangelist on ‎04-09-2018 08:40 AM - edited on ‎10-09-2018 11:19 PM by Technical Evangelist (1,052 Views)


How can a legend entry be displayed as a thematic in a M.App Enteriprise Desktop M.App?


Working with Tutorial: How to display thematic legend entry in Desktop M.Apps



Displaying thematic legend entries in Desktop M.Apps requires the use of Symbology filters. Knowing attribute values by which the dataset will be classified leads to a step by step process in creating a thematic display of the legend entry.


Prepare Database

Start by importing the attached SQL dataset (Crimes.zip) into your database. Microsoft SQL Server spatial data is used as the example for this tutorial. The coordinate system used is EPSG:3857.


Knowing the data

The ‘Crime’ table 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.


Setting up Thematic Display of Vector Content

*For information on how to Add data (Vector) to a M.App Enterprise Tenant please see the tutorial ‘How to setup a Desktop App’


  1. From the left side menu select ‘Stylesets’ followed by selecting ‘NEW’ and provide a Name (Crime) to the Styleset before saving it.paste.png
  2. Select Edit from the Styleset to open the list of possible Vector Layers to be styledpaste1.png
  3. From this list find ‘Crime’ and choose ‘New Style’ to bring up the feature symbolizerpaste2.png
  4. Here we can add the filters for each of the possible values of ‘rucr_ext_d’ attribute thus creating the thematic display of the ‘Crime’ legend entry. Notice that ‘No filter’ is currently the only (default) option and choose ‘Add filter’ to begin with first filter.
  5. The name of the Filter changes to be ‘New filter’ so it needs to be updated by putting the cursor to this box and typing an informative name. For the first filter use ‘ASSAULT’. Underneath the name input the filter statement to have it apply to ‘[rucr_ext_d] = ‘ASSAULT’. Add the ‘Point’ symbolizer and choose ‘Filled Mark’ to stylize the ASSAULT points from this vector layer.
  6.  Repeat steps 4 and 5 adding filters for the four remaining possible values: ROBBERY, THEFT FROM VEHICLE, THEFT OF VEHICLE and BREAK AND ENTER.                                                                                                                               Filter statements:                                                                                                                                                             Robbery >>>[rucr_ext_d] = ‘ROBBERY’                                                                                                                               Theft of Vehicle >>>[rucr_ext_d] = ‘THEFT OF VEHICLE’                                                                                                         B and E >>>[rucr_ext_d] = BREAK AND ENTER’                                                                                                                     Theft from Vehicle >>>[rucr_ext_d] = ‘THEFT FROM VEHICLE’paste3.png
  7. Choose ‘Save’ to apply the filters
  8. Ensure your ‘Crime’ vector layer has been added to a Desktop Legend and add the ‘Crime’ styleset to a Desktop M.App paste4.pngpaste5.png*For more information on creating a Desktop Legend please see the M.App Enterprise product documentation.
  9. View the Thematic display of the legend entry by opening the Desktop M.App via a user with a Role specified to use this M.App. paste6.png