allenhwkim / angularjs-google-maps

The Simplest AngularJS Google Maps V3 Directive
http://ngmap.github.io
MIT License
1.52k stars 516 forks source link

Disabling "View on Google Maps" info windows? #865

Closed langdonx closed 6 years ago

langdonx commented 6 years ago

Is there a way to disable the "places" from being interactive? I like that they are there, but I don't want the Google to show the info window for them when clicked, because I'm using "map click" to let the user move an existing marker and those things are interfering.

image

allenhwkim commented 6 years ago

please try custom style https://plnkr.co/edit/BipjcwNat3T8XAMU74EF?p=preview

  <ng-map center="[40.74, -74.18]" styles='[
  {
    "featureType": "poi",
    "elementType": "labels.icon",
    "stylers": [
      {
        "visibility": "off"
      }
    ]
  }
]'></ng-map>
langdonx commented 6 years ago

Works wonderfully btw, thank you!