Esri / react-arcgis

A few components to help you get started using the ArcGIS API for JavaScript and esri-loader with React
Apache License 2.0
319 stars 79 forks source link

Map zooming up infinitely #175

Closed shamsheertp closed 4 years ago

shamsheertp commented 4 years ago

Dear Team I have problem with this package , when i run this program i get loading issue its like infinity Zoom Loop

Here i attached the sandbox link https://codesandbox.io/s/fancy-meadow-wr4f2?fontsize=14&hidenavigation=1&theme=dark

thank you

gavinr commented 4 years ago

Add the following to your styles.css:

html,
body,
#root {
  height: 100%;
  width: 100%;
  margin: 0px;
}

Additionally, it does not look like you're loading the ArcGIS API styles. Please note:

IMPORTANT: You must load ArcGIS API styles before using the components in this library. The snippets below assume you've already used one of the ways that esri-loader provides you with to load the ArcGIS API CSS. https://github.com/Esri/react-arcgis#basic-usage