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
Occasional Contributor
Posts: 9
Registered: ‎02-20-2018
Accepted Solution

Clickable features on Map

Hi,

 

Am I able in Mobile to give the ability to the user when he click on a feature on the map to open a form? if yes what should I add and where?

 

John

Highlighted
Staff
Posts: 550
Registered: ‎11-12-2015

Re: Clickable features on Map

Hi John,

 

There are a few ways one could go about this.

Here I specified feature info for my marker layer "Crime_ent". When a feature from this layer is clicked the option to 'edit' will come up as one of the 3 available icons. I have a NavigateShellAction tied to 'Edit' that will target the 'CrimeForm'. In this way when the user clicks on edit it references the CrimeForm.xaml in my Shell that contains a configured form.

 

<MarkerVectorLayer Entity="Crime_ent" Icon="Map.Pin.png" 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>

User clicks on feature in map to bring up FeatureInfo

mobilemapclick.PNG

 

User clicks on Edit icon that targets the 'CrimeForm' and the result is:

mobilemapedittargetform.PNG

 

HTH

 

Occasional Contributor
Posts: 9
Registered: ‎02-20-2018

Re: Clickable features on Map

[ Edited ]

Hi sclow,

 

Thanks for your reply, I made the configuration you sent, and it worked

I only changed the Value="@{Guid}" to my column name, and leaved Name="Id"

John

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.