2

i'm new to using arcgis javascript api and to data visualization in general . my supposed use case is the following ::

I have a database of employees information that's stored in JSON format like this ::

[

   {
      "name":"lorem ipsum",
      "role":"software engineer",
      "location":"london, uk"
   } ,,,,,,,

]

how can i represent this data on an arcgis map ?

i've been drowning in the sample code section of the docs but really didn't get my answer.

1

Here is a straightforward walk-through of how to add a popuptemplate to a feature. You will need to load your json objects into each features attributes. This can be done through arcgis software itself. The popuptemplate populates based on the properties of feature.attributes.

0

To plot anything on arcgis map you need to have geojson data which contains geometry type and longitude and latitude coordinates for example:

var geojsonFeature = {
    "type": "Feature",
    "properties": {
        "name": "Coors Field",
        "amenity": "Baseball Stadium",
        "popupContent": "This is where the Rockies play!"
    },
    "geometry": {
        "type": "Point",
        "coordinates": [-104.99404, 39.75621]
    }
};

you can append other details of data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.