Select to view content in your preferred language

Map doesn't show in browser using map components, calcite components with Angular.

177
1
Jump to solution
03-27-2025 01:20 PM
ForrestLin
Frequent Contributor

I'm working on website using map components, calcite components with Angular.

I create a angular component "esri-map" with arcgis-map
 
esri-map.component.html:
 <arcgis-map item-id="cece49703cc24b0783dffb3032b0679c"></arcgis-map>
 
I put it in <calcite-shell>:
 
app.component.html:
<calcite-shell>
    <app-esri-map ></app-esri-map>
 </calcite-shell>
 
The map doesn't show in browser. 
 
 I inspect the document:
 
ForrestLin_0-1743105955057.png

 

The map component <arcgis-map> is suspended.

 
0 Kudos
1 Solution

Accepted Solutions
ForrestLin
Frequent Contributor

Issue is resolved:

`<app-esri-map>` element needs a height and width in css:

app-esri-map {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}
 

View solution in original post

1 Reply
ForrestLin
Frequent Contributor

Issue is resolved:

`<app-esri-map>` element needs a height and width in css:

app-esri-map {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
}