Use enumeration in mappView

I found a thread on the forum that talk about this limitation.

I look like the implementation of the snipplet is not perfect since i read the manual and thread and this make my HMI to crash without any error…