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 8874207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:39:35+00:00 2026-06-14T18:39:35+00:00

i am using bellow code to open up a infowindow in my map //populate

  • 0

i am using bellow code to open up a infowindow in my map

 //populate the  infowindow to defined marker map point
 function assignmarkerclick(marker1, index, message) {
     google.maps.event.addListener(marker1, 'click', function () {
         if (!infowindow) {
             infowindow = new google.maps.InfoWindow();
         }
         infowindow.setContent(message);
         infowindow.open(map, marker1);
     });
 }

// Shows the info window for the specified marker

function showMarker(index) {

    new google.maps.event.trigger(marker[index], 'click');
}

so when i click on the “show point” (assuming i am calling the showMarker() javascript function “show point link” click event) link at first time info window wont open ,when i click on the “show point ” link second time info window will open,
has any one had this bug before ? could some one help me to sort this issue please ?

thanks

  • 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-14T18:39:36+00:00Added an answer on June 14, 2026 at 6:39 pm

    Create your infowindow object as a global var, outside of the function:

    // global var
    var infowindow = new google.maps.InfoWindow();
    
     function assignmarkerclick(marker1, index, message) {
         google.maps.event.addListener(marker1, 'click', function () {
             infowindow.setContent(message);
             infowindow.open(map, marker1);
         });
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started using struts .I have hanged in a place ,Code is bellow
Thanks in advance. Getting this warning when using below code: Warning: file_get_contents(test.php) [function.file-get-contents]: failed
At this moment i am using the code bellow to bring up a dialog
I am using below code to send data to servlet HttpConnection c = (HttpConnection)Connector.open(http://localhost:8585/resposweb/resposweb?action=create_order;deviceside=true);
I have an outlook message file , converting into stream using below code Stream
I have to read from a Excel file using X++ Code. Bellow is the
I am using below code to open the new window from server side string
I'm using below code to open dialog from another another dialog. var newDiv =
I am not experienced with python and using the below code to open a
Using the below code I open the DataLinkDialog. The type ADODB._Connection has a ConnectionTimeout

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.