Looping through image folder for geopoints added from csv layer in ArcGIS for JavaScr

المشرف العام

Administrator
طاقم الإدارة
I had a question as to the possibility that when you add a layer via csv like the following if it was possible to include a loop through the markers folder to grab the next marker as the point is added from the file? So as an example the first point would be marker NumberIcon1 and the next point added from the csv list would be NumberIcon2 and so on.

layer1 = new CSVLayer("2.5_week.csv", { copyright: "USGS.gov" }); var marker[] = new PictureMarkerSymbol("resources/markers/red/NumberIcon1.png", 20, 20); var renderer = new SimpleRenderer(marker); layer1.setRenderer(renderer); var template = new InfoTemplate("${type}", "${place}"); layer1.setInfoTemplate(template); map.addLayer(layer1);

أكثر...
 
أعلى