地図にオブジェクトを追加して、ポイント、ライン、領域、またはオブジェクトの集合を指定することができます。Google Maps JavaScript API ではこれらのオブジェクトをオーバーレイと呼びます。オーバーレイは緯度と経度で表される座標に紐付いているため、地図をドラッグしたりズームしたりすると連動して動きます。
オーバーレイのタイプ
Maps JavaScript API には、プログラムで追加できる複数のタイプのオーバーレイがあります。
[null,null,["最終更新日 2025-02-28 UTC。"],[[["The Maps JavaScript API uses objects called **overlays** to designate points, lines, areas, or collections of objects on the map, which are tied to latitude/longitude coordinates."],["You can add various overlay types to your map, including info windows, polylines, polygons, circles, rectangles, symbols, ground overlays, and even create custom overlays."],["The Drawing Library allows users to interactively draw shapes like polylines, polygons, and markers directly on the map."],["Geocoding enables easy retrieval of latitude and longitude coordinates for places and addresses through requests."],["Customize the appearance of markers and polylines by using symbols, which are vector-based images defined using SVG path notation."]]],["The Maps JavaScript API uses \"overlays\" to add objects tied to latitude/longitude coordinates on a map. These include info windows for pop-up content, polylines for lines, polygons for areas, and symbols to customize marker icons. You can also use ground overlays to place images and use circles and rectangles. The Drawing Library lets users draw on the map. Geocoding is used to obtain latitudes and longitudes. Custom overlays and map types can also be implemented.\n"]]