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.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 23, 2017 at 11:12
1

2 Answers 2

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.

answered Mar 30, 2017 at 2:30
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.

Kantan
1,9372 gold badges17 silver badges28 bronze badges
answered Jun 18, 2019 at 6:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.