Friday, 18 December 2020

Google Maps JavaScript API - Layer Ordering

I have a map that loads building footprints from GeoJSON. My map also uses Street View. Like all Google Maps, Street View is accessed via Pegman. When you click and drag Pegman, the geometries on my map are above the geometries from the Street View geometries.

I would like to know how, or if it's even possible, to place the Street View layer above the Data layer (the layer with GeoJSON shapes) so street, path, and 360 geometries from Street View are above the GeoJSON building footprint geometries.

I've scoured the Google Maps JavaScript API documentation and made numerous Google Searches and cannot find a thing about re-ordering layers as you can with OpenLayers and Leaflet.

Here is a screenshot of the issue. You can see a path and a 360 panorama partially covered by the GeoJSON geometry.

enter image description here



from Google Maps JavaScript API - Layer Ordering

No comments:

Post a Comment