Skip to content

Instantly share code, notes, and snippets.

@flexbox
Created February 5, 2014 13:57
Show Gist options
  • Save flexbox/8824094 to your computer and use it in GitHub Desktop.
Save flexbox/8824094 to your computer and use it in GitHub Desktop.
[coffeescript] - Remove useless POI in google maps
window.onload = ->
styles = [
featureType: "poi"
stylers: [visibility: "off"]
]
styledMap = new google.maps.StyledMapType(styles,
name: "Styled Map"
)
mapOptions =
zoom: 11
center: new google.maps.LatLng(55.6468, 37.581)
mapTypeControlOptions:
mapTypeIds: [
google.maps.MapTypeId.ROADMAP
"map_style"
]
map = new google.maps.Map(document.getElementById("surabaya"), mapOptions)
map.mapTypes.set "map_style", styledMap
map.setMapTypeId "map_style"
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment