Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I remove building interiors from Google maps using styles?
    primarykey
    data
    text
    <p>I am trying to simplify google map layout by using custom styles. One issue I cannot get around is that building interiors are being displayed. For example, the Time Warner Building in NYC:</p> <p><img src="https://i.stack.imgur.com/9Ly9q.png" alt="Time Warner Building, Columbus Circle, New York, NY"> </p> <p>Here is the code that will generate a simplified map of the example:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"&gt; &lt;meta charset="utf-8"&gt; &lt;style&gt; html, body, #map_canvas { margin: 0; padding: 0; height: 100%; } &lt;/style&gt; &lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"&gt;&lt;/script&gt; &lt;script&gt; var map; function initialize() { var mapOptions = { zoom: 18, center: new google.maps.LatLng(40.7681, -73.9819), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions); var styles = [ { "featureType": "poi", "stylers": [ { "visibility": "off" } ] },{ "featureType": "landscape", "stylers": [ { "visibility": "off" } ] },{ "featureType": "transit", "stylers": [ { "visibility": "off" } ] } ] ; map.setOptions({styles: styles}); } google.maps.event.addDomListener(window, 'load', initialize); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="map_canvas"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>If I turn the visibility of "all" features, the building interior does go away along with everything else. However, I have been unable to figure out how to <em>just</em> make the interior disappear.</p> <p>Any help greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload