Skip to content

Commit fa8c168

Browse files
committed
Update index.tsx
1 parent 0bde251 commit fa8c168

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • samples/maps/geo-map/display-azure-imagery/src

samples/maps/geo-map/display-azure-imagery/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ export default class MapDisplayImageryAzure extends React.Component<any, any> {
5353
{/* Image or map */}
5454
<div style={{
5555
width: "100%",
56-
maxWidth: "960px",
56+
maxWidth: "100%",
5757
aspectRatio: "4 / 3",
5858
margin: "0 auto",
5959
position: "relative",
6060
overflow: "hidden"
6161
}}>
6262
{!this.state.mapVisible ? (
63-
<img src={currentStyle.placeholder} alt={this.state.styleName} style={{ width: "100%", height: "100%", objectFit: "cover" }} />
63+
<img src={currentStyle.placeholder} alt={this.state.styleName} style={{ maxWidth: "960px", height: "100%", objectFit: "contain", display: "block", margin: "0 auto" }} />
6464
) : (
6565
<IgrGeographicMap ref={r => this.geoMap = r!} width="100%" height="100%" zoomable={true} />
6666
)}

0 commit comments

Comments
 (0)