Page Summary
-
This example showcases creating a basic Google Map using HTML and the
gmp-mapweb component. -
The map is initialized using JavaScript (or TypeScript) with an
initMapfunction. -
Sample code provides implementation in both JavaScript and TypeScript, along with the corresponding HTML and CSS.
-
Users can experiment with the example via provided links to JSFiddle and Google Cloud Shell or clone the repository for local execution.
This example demonstrates creating a map using HTML, with the gmp-map
element.
Read the documentation .
TypeScript
// This example adds a map using web components.

