I succeeded to hide business POI on Google Maps API v3 with this topic.
But now I wonder if there is a way to be more specific.
I want to hide only hotels POI but still show restaurants and bars POI.
Is there a solution ?
Thanks
Once you are able to detect the marker click event you need to "hide" or remove the marker from the map. The standard way for doing this with google maps is to do this: this. setMap(null);
Use Google's Map Style Use the settings in the sidebar to adjust the density of the labels: Lower the landmark density to remove pins but keep street names. Decrease the label density to hide street names, too. Click “More options” at the bottom for advanced settings.
You can use map styling to hide features on the map. Select an option in this example to hide or show business points of interest (POIs) and public transit icons on the map.
I don't think there is a way to be more specific. You can refer to the Styled Map Wizard and the documentation to see what you can toggle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With