<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How I can display multiple points in a map from an array  ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-i-can-display-multiple-points-in-a-map-from-an/m-p/1013472#M71269</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/435509"&gt;@Abdulmajeed__&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please see the below link, this should give you a good idea.&lt;/P&gt;&lt;P&gt;Note, that the points are currently, located in the ocean, it could be depending on the coordinates.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/patelmanya/pen/dypmjJE?editors=1000" target="_blank"&gt;https://codepen.io/patelmanya/pen/dypmjJE?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Jan 2021 22:34:10 GMT</pubDate>
    <dc:creator>ManishPatel</dc:creator>
    <dc:date>2021-01-03T22:34:10Z</dc:date>
    <item>
      <title>How I can display multiple points in a map from an array  ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-i-can-display-multiple-points-in-a-map-from-an/m-p/1013424#M71266</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I want to display multiple points in a map using array&lt;/P&gt;&lt;P&gt;here is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8"&amp;gt;
    &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"&amp;gt;
    &amp;lt;title&amp;gt;ArcGIS API for JavaScript Tutorials: Create a JavaScript starter app&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      html, body, #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
      
    &amp;lt;/style&amp;gt;
     &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.15/esri/themes/light/main.css"&amp;gt;
     &amp;lt;script src="https://js.arcgis.com/4.15/"&amp;gt;&amp;lt;/script&amp;gt;
     &amp;lt;script&amp;gt;

     // My Array
var locs = ["51.38254, -2.362804", "51.235249, -2.297804", "51.086126, -2.210767"]


         require([
      "esri/Map",
      "esri/views/MapView",
      "esri/Graphic",
      "esri/layers/GraphicsLayer",
      "esri/geometry/Multipoint",
      "esri/layers/FeatureLayer",
  "esri/geometry/Point",
  "dojo/domReady!"
      
    ], function(Map, MapView, Graphic, GraphicsLayer, 
    Point) {
        
      
          var map = new Map({
            basemap: "dark-gray"
          });
      
          var view = new MapView({
            container: "viewDiv",
            map: map,
            center: [46.738586,24.774265], // longitude, latitude
            zoom: 6
          });

          
          
          var graphicsLayer = new GraphicsLayer();
       map.add(graphicsLayer);
       
      // create a point 
       var Point ={
        type: "point",
        longitude: 48.738586,
         latitude: 24.774265
         
       };
       var simpleMarkerSymbol = {
         type: "simple-marker",
         color: [46, 204, 113 ],  // Green
         outline: {
           color: [255, 255, 255], // white
           width: 1
         }
       };

       //*** ADD ***//
      // Create attributes
      var attributes = {
        Name: "My point",  // The name of the
        Location: " Point Dume State Beach",  // The owner of the
      };
      // Create popup template
      var popupTemplate = {
        title: "{Name}",
        content: "Test &amp;lt;b&amp;gt;{Location}&amp;lt;/b&amp;gt;."
      };

      var pointGraphic = new Graphic({
        geometry: Point,
        symbol: simpleMarkerSymbol,
        //*** ADD ***//
        attributes: attributes,
        popupTemplate: popupTemplate
      });

      graphicsLayer.add(pointGraphic);
        });
        &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2021 07:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-i-can-display-multiple-points-in-a-map-from-an/m-p/1013424#M71266</guid>
      <dc:creator>Abdulmajeed__</dc:creator>
      <dc:date>2021-01-03T07:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How I can display multiple points in a map from an array  ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-i-can-display-multiple-points-in-a-map-from-an/m-p/1013472#M71269</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/435509"&gt;@Abdulmajeed__&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please see the below link, this should give you a good idea.&lt;/P&gt;&lt;P&gt;Note, that the points are currently, located in the ocean, it could be depending on the coordinates.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/patelmanya/pen/dypmjJE?editors=1000" target="_blank"&gt;https://codepen.io/patelmanya/pen/dypmjJE?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2021 22:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-i-can-display-multiple-points-in-a-map-from-an/m-p/1013472#M71269</guid>
      <dc:creator>ManishPatel</dc:creator>
      <dc:date>2021-01-03T22:34:10Z</dc:date>
    </item>
  </channel>
</rss>

