Esri/react-arcgis

Map Not Loading

Closed this issue · 3 comments

I'm working with React ArcGIS on a new application that I'm prototyping but, I can never get the map to render on initial load.

My package.json is currently pulling these dependencies:

  "dependencies": {
    "@esri/react-arcgis": "^4.0.0",
    "react": "^16.9.0",
    "react-dom": "^16.9.0",
    "react-scripts": "3.1.1"
  },

My React component, which is the only one I'm rendering, looks like this:

class App extends React.Component {
  render() {
    return (
      < div className="mapView" >
        < Map />
      </ div >
    );
  }
}
export default App;

In the CSS, I'm styling .mapView to the full dimensions of the browser window.

Also, I noticed that there was a previous issue that regarded this a while back that was closed:
#78

There, they provided a link to a supposed working version of a rendering map located here:
https://codesandbox.io/s/j23x65l9ov

Turns out, the map at 'https://codesandbox.io/s/j23x65l9ov' does not work also. Suggestions?

In the mean time, I'm thinking about using the deprecated version 3.3.3.

Did you try it w/ fixed dimensions?

Here's an updated working example: https://codesandbox.io/s/react-arcgis-template-ic8kf

Closing due to inactivity