Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion samples/circle-simple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const mapElement = document.querySelector('gmp-map') as google.maps.MapElement;
let innerMap;

async function initMap() {
// Import the needed libraries.
// Request needed libraries.
(await google.maps.importLibrary('maps')) as google.maps.MapsLibrary;
(await google.maps.importLibrary('marker')) as google.maps.MarkerLibrary;
Expand All @@ -18,13 +17,16 @@ async function initMap() {
'gmp-map'
) as google.maps.MapElement;

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

// Get the inner map.
const innerMap = mapElement.innerMap;

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

// Create the circle.
const walkingCircle = new google.maps.Circle({
strokeColor: '#ffdd00ff',
strokeOpacity: 0.8,
Expand Down
Loading