Skip to content

Commit db803da

Browse files
authored
Comment map more fully (#1100)
Comments are good.
1 parent 2d5b630 commit db803da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samples/circle-simple/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const mapElement = document.querySelector('gmp-map') as google.maps.MapElement;
99
let innerMap;
1010

1111
async function initMap() {
12-
// Import the needed libraries.
1312
// Request needed libraries.
1413
(await google.maps.importLibrary('maps')) as google.maps.MapsLibrary;
1514
(await google.maps.importLibrary('marker')) as google.maps.MarkerLibrary;
@@ -18,13 +17,16 @@ async function initMap() {
1817
'gmp-map'
1918
) as google.maps.MapElement;
2019

20+
// Set the initial map center point.
2121
const initialCenter = { lat: 34.98956821576194, lng: 135.74239981260283 }; // Hotel Emion, Kyoto, Japan
2222

2323
// Get the inner map.
2424
const innerMap = mapElement.innerMap;
2525

26+
// Get the buttons.
2627
const buttons = document.querySelectorAll('input[name="radius"]');
2728

29+
// Create the circle.
2830
const walkingCircle = new google.maps.Circle({
2931
strokeColor: '#ffdd00ff',
3032
strokeOpacity: 0.8,

0 commit comments

Comments
 (0)