

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 特定のディメンションの静的マップを取得する方法
<a name="get-static-map-specific-dimension"></a>

このトピックでは、Amazon Location Service を使用して静的マップのディメンション (高さと幅) を設定する方法について説明します。マップイメージのディメンションをカスタマイズすることにより、パフォーマンス、ビジュアル品質、使いやすさのバランスを取ることができます。`width` と `height` の両方の最大値は 1400 ピクセルで、最小値は 64 ピクセルです。クエリ結果の最大サイズは 6 MB です。

さらに、`bbox` パラメータと `bounds`パラメータを `padding` と組み合わせて使用することにより、エッジ近くの重要なマップ機能を完全に表示し、切れないようにできます。

## 特定の高さと幅のマップイメージを取得する
<a name="get-map-specific-dimension"></a>

この例では、フィンランドのヘルシンキの低解像度および中解像度のマップイメージを作成します。

------
#### [ Request URL for low-resolution thumbnail ]

```
https://maps.geo.eu-central-1.amazonaws.com/v2/static/map?style=Satellite&width=200&height=200&zoom=11.5&center=24.9460,60.1690&key=API_KEY
```

------
#### [ Response (Thumbnail 200x200) ]

![\[Aerial view of a coastal city with intricate waterways, islands, and urban development.\]](http://docs.aws.amazon.com/ja_jp/location/latest/developerguide/images/static-specific-dimension-low.png)


------
#### [ Request URL for mid-resolution image ]

```
https://maps.geo.eu-central-1.amazonaws.com/v2/static/map?style=Satellite&width=700&height=700&zoom=13&center=24.9460,60.1690&key=API_KEY
```

------
#### [ Response image (700x700) ]

![\[Aerial view of a coastal city with dense urban development, harbors, and surrounding waters.\]](http://docs.aws.amazon.com/ja_jp/location/latest/developerguide/images/static-specific-dimension-mid.png)


------

## すべての側面にパディング付きのマップイメージを取得する
<a name="get-map-with-padding"></a>

この例では、フィンランドのヘルシンキにある複数の必見スポットとその座標 (経度、緯度) を使って、パディングあり/なしの地図を生成します。

------
#### [ Request URL with padding ]

```
https://maps.geo.eu-central-1.amazonaws.com/v2/static/map?style=Satellite&width=1024&height=1024&padding=150&bounded-positions=24.9526,60.1692,24.9850,60.1465,24.9270,60.1725,24.9226,60.1826,24.9509,60.1675,24.9566,60.1685,24.9457,60.1674,24.9397,60.1719,24.9414,60.1715,24.9387,60.1720&key=API_KEY
```

------
#### [ Response image (with padding) ]

![\[Aerial view of a coastal city with dense urban areas, harbors, and surrounding islands.\]](http://docs.aws.amazon.com/ja_jp/location/latest/developerguide/images/static-specific-dimension-padding.png)


------
#### [ Request URL without padding ]

```
https://maps.geo.eu-central-1.amazonaws.com/v2/static/map?style=Satellite&width=1024&height=1024&bounded-positions=24.9526,60.1692,24.9850,60.1465,24.9270,60.1725,24.9226,60.1826,24.9509,60.1675,24.9566,60.1685,24.9457,60.1674,24.9397,60.1719,24.9414,60.1715,24.9387,60.1720&key=API_KEY
```

------
#### [ Response image (without padding) ]

![\[Aerial view of a coastal city with dense urban areas, harbors, and small islands.\]](http://docs.aws.amazon.com/ja_jp/location/latest/developerguide/images/static-specific-dimension-no-padding.png)


------