Skip to content

Commit 2c865ca

Browse files
authored
fix: Fix weather sample inconsistent region tags (#567)
* fix: Update package.json Some values were not changed after copying and pasting. * Update package.json Makes project names all match. * Update index.html updates region tags with correct project name * Update style.css Fixes broken region tags
1 parent 249dd1d commit 2c865ca

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

samples/weather-api-current-compact/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Copyright 2025 Google LLC. All Rights Reserved.
55
SPDX-License-Identifier: Apache-2.0
66
-->
7-
<!-- [START maps_weather_api_compact] -->
7+
<!-- [START maps_weather_api_current_compact] -->
88
<html>
99
<head>
1010
<title>Simple Map</title>
@@ -30,4 +30,4 @@
3030
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
3131
</body>
3232
</html>
33-
<!-- [END maps_weather_api_compact] -->
33+
<!-- [END maps_weather_api_current_compact] -->
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "@js-api-samples/weather-api-compact",
2+
"name": "@js-api-samples/weather-api-current-compact",
33
"version": "1.0.0",
44
"scripts": {
5-
"build": "tsc && bash ../jsfiddle.sh map-simple && bash ../app.sh map-simple && bash ../docs.sh map-simple && npm run build:vite --workspace=. && bash ../dist.sh map-simple",
5+
"build": "tsc && bash ../jsfiddle.sh weather-api-current-compact && bash ../app.sh weather-api-current-compact && bash ../docs.sh weather-api-current-compact && npm run build:vite --workspace=. && bash ../dist.sh weather-api-current-compact",
66
"test": "tsc && npm run build:vite --workspace=.",
77
"start": "vite --port 5173",
88
"build:vite": "vite build --base './'",
@@ -11,4 +11,4 @@
1111
"dependencies": {
1212

1313
}
14-
}
14+
}

samples/weather-api-current-compact/style.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
/* [START maps_map_simple] */
6+
/* [START maps_weather_api_current_compact] */
77
/*
88
* Always set the map height explicitly to define the size of the div element
99
* that contains the map.
@@ -22,8 +22,6 @@ body {
2222
padding: 0;
2323
}
2424

25-
/* [END maps_map_simple] */
26-
2725
/* Styles for the weather widget */
2826
.widget-container {
2927
background-color: white; /* Light mode background */
@@ -237,4 +235,5 @@ body {
237235
padding: 6px 10px; /* Adjust button padding */
238236
font-size: 0.9em; /* Adjust button font size */
239237
}
240-
}
238+
}
239+
/* [END maps_weather_api_current_compact] */

0 commit comments

Comments
 (0)