-
-
Save mokolodi1/34bc7bf8182e89bb93cb9a8b2855b9fa to your computer and use it in GitHub Desktop.
Hide "points of interest" in google maps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reference: https://developers.google.com/maps/documentation/javascript/style-reference | |
let map = new google.maps.Map(document.getElementById('map-canvas'), { | |
disableDefaultUI: true, | |
styles: [ | |
{ | |
featureType: "poi", | |
elementType: "labels", | |
stylers: [ | |
{ visibility: "off" } | |
] | |
} | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment