<?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: build a simple web map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116839#M75282</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/419647"&gt;@Kishore&lt;/a&gt;&amp;nbsp;It works&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 13:20:55 GMT</pubDate>
    <dc:creator>eyalj</dc:creator>
    <dc:date>2021-11-15T13:20:55Z</dc:date>
    <item>
      <title>build a simple web map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116653#M75275</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I'm trying to build my first application that uses arcgis maps in react and I'm trying to display a webmap&lt;/P&gt;&lt;P&gt;but when I render the map its looks like im doing something wrong&lt;/P&gt;&lt;P&gt;that's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import React, { useEffect, useRef } from "react"
import WebMap from "@arcgis/core/WebMap"
import MapView from '@arcgis/core/views/MapView';


function App() {

  const mapDiv = useRef()

  useEffect(()=&amp;gt;{
    
    if(mapDiv.current){
      const webmap = new WebMap({
        portalItem:{
          id:"e691172598f04ea8881cd2a4adaa45ba"
        }
      })
      const view = new MapView({
        map: webmap
      })
      view.container= mapDiv.current
    }

  },[])
  
  return(
    &amp;lt;div id ='map' ref={mapDiv}
    &amp;gt;&amp;lt;/div&amp;gt;
  )
}

export default App;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 10:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116653#M75275</guid>
      <dc:creator>eyalj</dc:creator>
      <dc:date>2021-11-14T10:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: build a simple web map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116700#M75278</link>
      <description>&lt;P&gt;Have you initialised the API with a token? I suggest you try to follow the basic tutorial from the documentations -&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/display-a-map/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/display-a-map/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 22:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116700#M75278</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2021-11-14T22:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: build a simple web map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116755#M75280</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/537653"&gt;@eyalj&lt;/a&gt;&amp;nbsp;I don't see any error from your code. I think you are missing the Map div height and width. try following in the return will show you the map:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return (
    &amp;lt;div id='map' ref={mapDiv} style={{ height: "100vh", width: "100vh" }}
    &amp;gt;&amp;lt;/div&amp;gt;
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Nov 2021 07:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116755#M75280</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2021-11-15T07:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: build a simple web map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116839#M75282</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/419647"&gt;@Kishore&lt;/a&gt;&amp;nbsp;It works&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 13:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116839#M75282</guid>
      <dc:creator>eyalj</dc:creator>
      <dc:date>2021-11-15T13:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: build a simple web map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116841#M75283</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/419647"&gt;@Kishore&lt;/a&gt;&amp;nbsp;It works&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 13:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/build-a-simple-web-map/m-p/1116841#M75283</guid>
      <dc:creator>eyalj</dc:creator>
      <dc:date>2021-11-15T13:22:52Z</dc:date>
    </item>
  </channel>
</rss>

