Spectrum Spatial (SSA/LIM)

Welcome to the Spectrum Spatial (SSA/LIM) community - start a discussion in the discussion tab or join in a conversation.

SSA Documentation  LIM Documentation  SSA Ideas  LIM Ideas

Discussions

Members

Resources

Events

 View Only
  • 1.  Hello,

    Posted 11-24-2017 13:57
      |   view attached

    Hello,

     

    I know I can use custom templates to open a PDF or image that is referenced in a tab file field into a new tab (when info-clicked) using this...

     

     <b>Image:</b> <a href="{{feature.Image.value}}" target="_blank" title="click for more details">{{feature.Image.value}}</a></b>

     

    But how can I get each image to appear within the callout itself rather than opening in a new tab?

     

    The attached image should explain it furtherSee Attachment

     

     



  • 2.  RE: Hello,

    Posted 11-26-2017 15:51

    Hi Stuart,

    I would look at pulling the image into an iframe or span using ng-src or ngswitch? or ng-mouseover

    There's some demo code here https://stackoverflow.com/questions/44150498/angularjs-show-image-on-mouseover

    Hope this helps

    cheers

     

     

     



  • 3.  RE: Hello,

    Posted 11-27-2017 04:10
    Many thanks for that, Peter. I’m not sure this is what I am looking for, though. Each record in my table has a unique image referenced to it in a tab field (loaded to a UNC path on our web server). Instead of the that tab file field value showing in the left side info panel as a clickable URL I want the actual image to appear in the left-side info panel instead. I’m sure it’s doable, I just can’t work out the line of HTML.


  • 4.  RE: Hello,

    Posted 11-27-2017 15:00

    Hi Stuart,

    In that case I would replace the href with ng-src? within an image element some thing like this

    <img ng-src="http://www.gravatar.com/avatar/{{feature.Image.value}}" alt="Description" />

    If you use ng-src then angular will parse the combined string correctly

    cheers



  • 5.  RE: Hello,

    Posted 11-28-2017 04:18
    Thanks for that, Peter. I’ll give it a go. Once I’ve got it sorted I’ll share the full html with the SSA group.