Hi!
I am building a simple app with the ESRI javascript API. It contains two feature layers from an ESRI REST API, and I also need to get GPX-data from another API. I have managed to get and convert the GPX into geojson, and now I want to create a feature layer in my code to display the geojson data on the same map.
The question is how?
Here are code snippets:
Simple featureLayer:
var featureLayerEnkeltminner = new FeatureLayer("http://askeladden_wms.ra.no/arcgis/rest/services/WMS/RA_Askeladden/MapServer/1", {
infoTemplate: new InfoTemplate("${Navn}", "${*}"),
outFields: ["Navn", "KulturminneID", "KategoriID", "VernetypeID", "KOMM"]