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
Contributor
Posts: 51
Registered: ‎11-30-2015

FeatureInfo for LineVectorLayer

[ Edited ]

In the documentation there is the example given of the FeatureInfo coupled to a NavigateShellAction for Markers in the NativeMap.xaml.

 

<MarkerVectorLayer Entity="EX" ZIndex="3" MinimumZoomLevel="13" MaximumZoomLevel="22">
<FeatureInfo Title="Title: @{title}">
<NavigateShellAction Icon="Edit" Target="Form">
<Parameter Name="Id" Value="@{id}" />
</NavigateShellAction>
</FeatureInfo>
</MarkerVectorLayer> 
<NativeLayer Type="Roads" />
</NativeMap.Layers>

 

I am using a LineVectorLayer where this is not working. I have attached the error message.

Is there a different code to get FeatureInfo for non-point geometries or is there some issue to pay attention to?

 

Thanks and regards,

Hella

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

Re: FeatureInfo for LineVectorLayer

Hi Hella,

 

can you attach your shell so I can have a look at it?

 

There should be no difference how to define a feature info between vector layers.

 

Regards

Christian

Contributor
Posts: 51
Registered: ‎11-30-2015

Re: FeatureInfo for LineVectorLayer

Hi Christian,

 

I have attached all App-files and could also send you a backup of the corresponding postgis-DB if needed.

 

Thanks and regards,

Hella

Staff
Posts: 951
Registered: ‎10-19-2015

Re: FeatureInfo for LineVectorLayer

hi Hella,

 

I've configured it this way (works in my case):

 

<LineVectorLayer Entity="GravelVI" Label="@{RoadLinkNr}" ZIndex="0" 
	 MaximumZoomLevel="20" Color="#8A2BE2">
	<FeatureInfo Title="From: @{FromKm} To: @{ToKm}">
		<NavigateSelectionAction />
	</FeatureInfo>								 
</LineVectorLayer>

HTH,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Contributor
Posts: 46
Registered: ‎10-10-2015

Re: FeatureInfo for LineVectorLayer

[ Edited ]

I am using this for polygon

 

<PolygonVectorLayer Entity="Zonificacion" Label="@{estra_2016}" ZIndex="3" MinimumZoomLevel="15" MaximumZoomLevel="22" Color="#153cff" FillColor="#880000FF" SelectionColor="#00FF00" SelectionFillColor="#8800FF00" >
	<FeatureInfo Title="Estar 2016: @{estra_2016}" Detail="Uso Gral.: @{uso_gral}">
             	<NavigateShellAction Icon="Edit" Target="ZonificacionForm">
                 	<Parameter Name="Id" Value="@{id}" />
            	</NavigateShellAction>
             	<NavigateSelectionAction />
         </FeatureInfo>	
</PolygonVectorLayer>

But It doesn't work.

Polls
Please register to vote
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.