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

  • SEARCH
  • Home
  • 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 7860993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:31:08+00:00 2026-06-02T22:31:08+00:00

I need a Google Maps Marker to respond to an event triggered by the

  • 0

I need a Google Maps Marker to respond to an event triggered by the Map (idle). The event triggers a function. This function is SUPPOSED to act on the Marker, but of course, “this” refers to the map. How, inside the function, can I reference the Marker that set the event listener.

Every Marker will add an idle listener to the map. I could track all the markers, and upon a Map Idle Event, loop through them and trigger the function, but I was hoping on a more zen method.

My current method is this:

var self=newMarker;
google.maps.event.addListener(window.gmap,'idle',function(){
    self.setVisible(false); });

But it only seems to work for 1 marker. “newMarker” is the marker object I’m trying to access from inside the event, and as I said there’s multiple markers, so I can’t just store it in a global variable or anything.

  • 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-02T22:31:10+00:00Added an answer on June 2, 2026 at 10:31 pm

    Use jQuery’s “proxy”, jQuery Proxy

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

Sidebar

Related Questions

Programaticly, I need to include a google Maps map to automaticly generated pdf files.
I need to make something happen when any google maps marker is clicked on.
I need to automatically change Google Maps marker icons based on the inner content
I need to create a custom look for the Google Maps info windows (straight-edge
I have a page where I need SWFObject, jQuery and Google Maps API. I
Need help writing a script downloads data from google insight using c# this is
I need to draw multiple routes on a google map. By googeling around i
I'm trying to update a marker in real time on a Google Map. I
I'm working on a Google Map in JavaScript(v3). I need to show some markers
I have an application with google maps v3 and php. I need to dynamically

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.