Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change the layering of KML and Tile Overlays in Google Maps?
    primarykey
    data
    text
    <p>I'm working on a project where I am utilizing tile overlays <em>(visual)</em> to display a rendering of the space, building names, accessibility, and parking spaces as well as KML polygons <em>(functionality)</em> to allow the user to click on various buildings or points of interest to bring up further information. My current issue lies in the organization of these various elements.</p> <p>At the moment, the KML polygons are appearing above all the tile overlays, including building names and parking which I would prefer to be on top of the KML polygons as they are otherwise partly obscured by the polygons. In short, here is the current layering:</p> <ul> <li>KML Polygons</li> <li>Building Names <em>(Transparent)</em></li> <li>Accessibility <em>(Transparent)</em></li> <li>Parking <em>(Transparent)</em></li> <li>Space Rendering <em>(Opaque)</em></li> <li>Google Maps</li> </ul> <p>Ideally, I would prefer to have the KML polygons appear within these tile overlays, namely right above the rendering of the space. Thus, I wish to obtain this layering:</p> <ul> <li>Building Names <em>(Transparent)</em></li> <li>Accessibility <em>(Transparent)</em></li> <li>Parking <em>(Transparent)</em></li> <li>KML Polygons</li> <li>Space Rendering <em>(Opaque)</em></li> <li>Google Maps</li> </ul> <p>Is there anyway to rearrange the KML the tile overlay layers to achieve this?</p> <p>Tile Overlays:</p> <pre><code>map.overlayMapTypes.insertAt(0, renderMapType); map.overlayMapTypes.insertAt(1, parkingMapType); map.overlayMapTypes.insertAt(2, accessMapType); map.overlayMapTypes.insertAt(3, nameMapType); </code></pre> <p><strong>Edit:</strong></p> <p>Allow me to explain the map a bit more clearly. </p> <p>When Google Maps is in "Map", the rendering is displayed and most of the KML polygons are invisible, those unrepresented on the render remaining visible so that the user is still aware of their presence. When Google Maps is in "Satellite", the rendering isn't displayed and all the KML polygons are visible and overlay their respective elements on the satellite image, making them easier for the user to see.</p> <p>In either case, the accessibility, parking, and name overlays can be used and, as there is always at least some KML polygons which must be visible, I've resorted to looking for a way to reorder the layers.</p>
    singulars
    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.
 

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