Hexagon Geospatial
MENU

M.App Enterprise

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 18
Registered: ‎11-15-2018
Accepted Solution

Mobile App - different line colors for LineVectorLayer depending on a field

Hi,

is there an analogous way for <LineVectorLayer> in order to chose different line-colors depending on a field f of table x
like different icons for <MarkerVectorLayer> described in docu?

 

My workaround - if you only have a few different values for depending field - is:

  1. create different database views for table x for every value of column f with WHERE clause set to specified value of column f
  2. define <LineVectorLayer> for each View with desired colors

thanks a lot and best regards,
Iris

Staff
Posts: 66
Registered: ‎10-25-2016

Re: Mobile App - different line colors for LineVectorLayer depending on a field

Hi Iris,

 

you can use the placeholder syntax to get a color from a database column. There is no mapping yet, but you can do the mapping in a database view.

 

<LineVectorLayer Entity="Street" Color="@{StreetColor}" SelectionColor="#00FF00" StrokeWidth="5" />

 

Regards

Christian

Occasional Contributor
Posts: 18
Registered: ‎11-15-2018

Re: Mobile App - different line colors for LineVectorLayer depending on a field

Thanks,

that's a good hint.

 

Regards Iris

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Development Ticket through our Development Ticket Portal.