Skip to main content

Get Current MapTip feature

Comments

1 comment

  • Richard Diaz
    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>&nbsp;&nbsp;</td>

     

      <td>{MapServiceDisplayName}</td>

     

     </tr>

     

     <tr>

     

      <td>MapServiceId:</td>

     

      <td>&nbsp;&nbsp;</td>

     

      <td>{MapServiceId}</td>

     

     </tr>

     

     <tr>

     

      <td>MapServiceUrl:</td>

     

      <td>&nbsp;&nbsp;</td>

     

      <td>{MapServiceUrl}</td>

     

     </tr>

     

     <tr>

     

      <td>LayerDisplayName:</td>

     

      <td>&nbsp;&nbsp;</td>

     

      <td>{LayerDisplayName}</td>

     

     </tr>

     

     <tr>

     

      <td>LayerId:</td>

     

      <td>&nbsp;&nbsp;</td>

     

      <td>{LayerId}</td>

     

     </tr>

     

     <tr>

     

      <td>LayerName:</td>

     

      <td>&nbsp;&nbsp;</td>

     

      <td>{LayerName}</td>

     

     </tr>

     

     <tr>

     

      <td>LayerDescription:</td>

     

      <td>&nbsp;&nbsp;</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>

     

    Rick

     

     

     

     
    0

Please sign in to leave a comment.