Smart M.App discussions

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 19
Registered: ‎06-15-2016
Accepted Solution

Incident Analyzer - Display attached image of points

[ Edited ]

Hi all, 

 

Pls help me to show how to display attached image of incident point as below: 

 

Thanks

 

2016-10-07_9-41-33.jpg

 

 

Highlighted
Technical Evangelist
Posts: 36
Registered: ‎07-12-2016

Re: Incident Analyzer - Display attached image of points

Thank you for your question. To add an image to an incident location as a tool tips, you need to add an “IMG” tag in the CSV file as an attribute:

 

  • Add a new column to your input.
  • Name this column using whatever name you want.
  • Add the following statement to each record.
  • <img onclick="showImageViewer('http://YourURL/data')" style="border:1px solid #999;height:20vh;vertical-align:top"src="http://YourURL/data">
  • Replace the http address with your address ( i.e. a pointer to each image).

 

With this in place, the built in image viewer code in Incident Analyzer, will handle individual incidents as well as clusters. For clusters, the image will appear in the grid. If the users clicks the image, it will become larger.

 

Hope this helps,

Highlighted
Occasional Contributor
Posts: 19
Registered: ‎06-15-2016

Re: Incident Analyzer - Display attached image of points

Thank for your support, Rgammon, 

 

I have displayed the attachted image as a tooltip.