Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7712669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:41:24+00:00 2026-06-01T01:41:24+00:00

I have a Google V3 map which uses steetView and some map markers. The

  • 0

I have a Google V3 map which uses steetView and some map markers.
The little yellow streetView pegman sits on the map on top of the markers.
Is there a way to change the z-indexes so that my markers will be above the pegman
(so that they can be easlly clicked on without having to zoom in)?

In case anything is not clear, here is a fiddle….
http://jsfiddle.net/spiderplant0/BRkCA/

After a bit of experimenting I came up with this…

$("#map_canvas img[src*=cb_scout]").parent("div").css({'zIndex': -200});
$($("#map_canvas img[src*=cb_scout]")[1]).parent("div").parent("div").css({'zIndex': -200});

This forces the pegman to sit beneath the markers but now the pegman is no longer dragable and each time the map is moved etc, the pegman jumps above the markers again.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:41:26+00:00Added an answer on June 1, 2026 at 1:41 am

    To keep the pegman under your markers you can watch for the pov_changed event and reset the z-index after a short delay

    $google.maps.event.addListener(panorama, 'pov_changed', function() {
        var func=function(){
            $("#map_canvas img[src*=cb_scout]").parent("div").css({'zIndex': -200});
        }
        setTimeout(func,1000);
        }
    });
    

    You will also need to change the depth of the pegman after the maps moves, which can be accomplished with the following snippet

    google.maps.event.addListener(map, 'idle', function() {
                    google.maps.event.trigger(panorama, 'pov_changed');
        })
    

    If you want to be able to drag the pegman, you must first place it above the markers by having a toggle button swap the pegman’s depth and add an exception to the pov_changed event handler preventing the pagman from dropping depths when the toggle button is active.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Google map with markers which link through to other pages. If
We have a map which uses polygons to create overlays on top of countries.
I have developed an app which uses google map. The problem is when I
I have an App which launches the google Map App. The code is: UIApplication
I have a view containing a UIWebView which is loading a google map (so
i have a google map link which returns a xml to me. I want
I have built an android app which use Google Map feature. I want my
I currently have a Google Map Activity which is apparently working well but doesn't
i have a google map api key which is working in my website but
I have created a simple app which shows a Google Map. I am testing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.