title: How to fully disable streetview from google maps
body: <p>I've disabled streetview controls like so:</p>
  <pre><code>var mapOptions = {
    zoom: 16,
    center: myCenter,
    streetViewControl:false
  };
  var map = new google.maps.Map(
    document.getElementById(&quot;map&quot;),
    mapOptions
  );
  </code></pre>
  <p>Which takes the streetview control off of the map BUT if you click on a point of interest with a panoramic image / link to streetview then click that image you are again taken into streetview mode.</p>
  <p>I want to keep my points of interest but I want to disable maps from going into streetview mode. Is this possible?</p>
  <p><img src="https://i.stack.imgur.com/BLCiO.png" alt="streetview photo option in google maps" /></p>
  <h1>Solution</h1>
  <p>Using the answer below I added a few more items:</p>
  <pre><code>.gm-rev, .gm-sv-label{display:none;}
  .gm-iw, .gm-sm, .gm-wsv{pointer-events:none;}
  </code></pre>