Select to view content in your preferred language

Is there any esri functions dealing with converting images to JSON objects?

696
0
05-11-2016 12:17 PM
JuniasTchamba_Kuiteul
New Contributor

We got a school project in which we are to join some info in the infoTemplate when hovering or clicking on a Point Of Interest (POI). I got some help when searching in the community thread with the function below:

function getContent(graphic){ 

          var Content = "<b>City Name:  </b>" + graphic.attributes.areaname + "<br> <b>Population:  </b>" + graphic.attributes.pop2000 + "<br>";  

          var Hyperlink = '<img src="https://pixabay.com/static/uploads/photo/2014/04/02/17/03/man-307787_640.png" alt="man i bilen" height="42" width="42"></img>'

             

          return Content + Hyperlink; 

        }  

I have two issues to deal with:

-Create a loop which is going to go through my JSON file.

-Convert images to JSON objects

Is there anyone to help me?

0 Kudos
0 Replies