Skip to content

Commit ca9ba05

Browse files
authored
Update feature layer to explicitly use google.maps.FeatureType.
1 parent 96bbf2f commit ca9ba05

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

samples/boundaries-simple/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ async function initMap() {
2424
// Get the inner map.
2525
const innerMap = mapElement.innerMap;
2626

27-
//@ts-ignore
28-
featureLayer = innerMap.getFeatureLayer('LOCALITY');
27+
featureLayer = innerMap.getFeatureLayer(google.maps.FeatureType.LOCALITY);
2928

3029
// [START maps_boundaries_simple_style_single]
3130
// Define a style with purple fill and border.
@@ -48,4 +47,4 @@ async function initMap() {
4847
}
4948

5049
initMap();
51-
// [END maps_boundaries_simple]
50+
// [END maps_boundaries_simple]

0 commit comments

Comments
 (0)