Home > Enterprise >  How to remove places from Google Maps API
How to remove places from Google Maps API

Time:11-25

My map picture

I am implementing google maps in a React app with typescript and I need to remove the places from this map:

enter image description here

Map Component

I have been searching through the docs some prop to remove those places but I can not find it. Props passed to my map component:


<Map 
 streetViewControl={false}
 mapTypeId="roadmap"
 mapTypeControl={false} 
 center={newCenter} 
 zoom={zoom} 
 style={{ flexGrow: "1", height: "100%" }} ></Map>

CodePudding user response:

Use a mapId and style generated at enter image description here

  • Related