How to plot GeoJson Data on map using javascript api.

2528
1
09-17-2017 10:52 PM
CyientNAM
New Contributor

I have geo json data in in below format:-

var geoData = {
'type': 'Feature',
'geometry': data.geometry,
'properties': {      
      'id': data.id,
     'date': data.date,
     '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
RobertScheitlin__GISP
MVP Esteemed Contributor

Cyient,

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

Feature collection | ArcGIS API for JavaScript 3.21 

0 Kudos