Select to view content in your preferred language

How to plot GeoJson Data on map using javascript api.

09-17-2017 10:52 PM
New Contributor

I have geo json data in in below format:-

var geoData = {
'type': 'Feature',
'geometry': data.geometry,
'properties': {      
     'reason': data.reason,
    'distance': data.distance

I want to know how to plot this geojson data on the map as a feature and when the user clicks on that feature, map pop should show some basic information which is there in properties.

0 Kudos
1 Reply
MVP Emeritus


   You can use this sample as an example of how to do that:

Feature collection | ArcGIS API for JavaScript 3.21 

0 Kudos