Get Current MapTip feature
Hi
Is there a way to see what the user is currently viewing in the maptip window in terms of featuresetid/name? I would like to run a workflow on the feature the user is currently viewing - they could have pressed the previous/next record in the maptip window when multiple features are selected at the same point. I know I can loop through the getSelectedFeatures but which one is the user currently looking at?
Thanks
Doug
HTML5 2.7 and Essentials 4.6.3
0
-
This may be what you need. Look into using Map Service Tokens and Layer Tokens in the Essentials Administration PDF. Here is a sample that you can place in your maptip:
<table>
<tbody>
<tr>
<td>MapServiceDisplayName:</td>
<td> </td>
<td>{MapServiceDisplayName}</td>
</tr>
<tr>
<td>MapServiceId:</td>
<td> </td>
<td>{MapServiceId}</td>
</tr>
<tr>
<td>MapServiceUrl:</td>
<td> </td>
<td>{MapServiceUrl}</td>
</tr>
<tr>
<td>LayerDisplayName:</td>
<td> </td>
<td>{LayerDisplayName}</td>
</tr>
<tr>
<td>LayerId:</td>
<td> </td>
<td>{LayerId}</td>
</tr>
<tr>
<td>LayerName:</td>
<td> </td>
<td>{LayerName}</td>
</tr>
<tr>
<td>LayerDescription:</td>
<td> </td>
<td>{LayerDescription}</td>
</tr>
</tbody>
</table>
If you want to edit the feature that is currently selected in the maptip, here is the syntax to use {$Geometry} to get the selected geometry to edit, delete, copy...
<a href="command:RunWorkflowWithArguments?workflowId=MapTips_Delete_Features&msId={MapServiceId}&lName={LayerName}&objId={OBJECTID}&thisGeometry={$Geometry}">Delete Feature</a>
Rick0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar