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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:11:31+00:00 2026-06-11T06:11:31+00:00

How to detect infowindow closed in jquery-ui-map and pan the map to center after

  • 0

How to detect infowindow closed in jquery-ui-map and pan the map to center after the window is closed ?

<pre>

 $(function() { 
                demo.add(function() {
                    $('#themap').gmap({'center': '54.977614,23.871643', 'zoom': 7,'disableDefaultUI':false, 'callback': function() {
                        var self = this;
                        $.getJSON( 'index.php?option=com_maps&view=stendai&format=json', function(data) { 
                            $.each( data.markers, function(i, marker) {
                                self.addMarker({ 'id':marker.id, 'position': new google.maps.LatLng(marker.latitude, marker.longitude),'icon':'images/stendas.png' , 'bounds':true }



                                 ).click(function() {
                                    self.openInfoWindow({ 'content': marker.content }, this);
                                });

                            });
                        });
                    }}); 
                }).load();
            });


</pre>
  • 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-11T06:11:33+00:00Added an answer on June 11, 2026 at 6:11 am

    Google Maps Infowindows have a closeclick event. You can attach a listener to this event for every info window and pan the map when you receive a notification for this event. A basic example for this is given in this posting.

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

Sidebar

Related Questions

I'm trying to detect and remove those fields that after a sync are still
My code can detect browser window bottom like below and then run last_msg_funtion(); :
jQuery possible to Detect when a user is in a Textarea and when they
I would like to detect whether the user has pressed Enter using jQuery. How
Possible Duplicate: How to detect if two divs touch with jquery? I've spent a
I detect collision in BeginContact function of the contact listener.. void MagneteListener::BeginContact(b2Contact* contact) {
Compilers detect unused variable within the scope of a function. However, I found there
To detect if a browser support translate3d we can use ( WebKitCSSMatrix in window
I detect ctrl+v in keydown event in such a way: .keydown(function(e){ if ( e.ctrlKey
How do I detect what browser a user is using in JQuery 1.9?

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.