title: Auto adjustment of InfoWindow position on Google Maps
body: <p>I've got Django template with Google Maps v3 with custom InfoWindows. On mouseover event JavaScript draws my InfoBox window and then auto adjust it position on map. Map moves to position where window displays without overlaps. How can I disable adjustment?</p>
  
  <pre><code>       var latlng = new google.maps.LatLng(47.517201, 7.03125);
  
  
          var map_options = {
              zoom: 2,
              center: latlng,
              scrollwheel: false,
              mapTypeControl: false,
              streetViewControl: false,
              overviewMapControl: false,
              zoomControlOptions: {
                      style: google.maps.ZoomControlStyle.SMALL 
              },
              mapTypeId: google.maps.MapTypeId.TERRAIN,
          };
  
          var map = new google.maps.Map(document.getElementById("map"), map_options);
  
          google.maps.event.addListener(map, 'zoom_changed', function() {
              map.setOptions({scrollwheel: true});
          });
  
          var fm_infowindow = new Array();
          var am_infowindow = new Array();
          var pm_infowindow = new Array();
  
          {% for object in future_object_list %}
              var fm_latlng_{{ forloop.counter }} = new google.maps.LatLng({{object.abscissa}}, {{object.ordinate}});
              var futuremap_{{ forloop.counter }} = new google.maps.Marker({
                  position: fm_latlng_{{ forloop.counter }},
                      map: map,
                      icon: '/media/images/dot-green.png',
              });
  
              fm_infowindow[{{ forloop.counter }}] = new InfoBox({
                  content: "&lt;div style='width: 150px; float: left;'&gt;&lt;img src='{% thumbnail object.photo 150x98 crop %}' alt='{{ object.title }}' /&gt;&lt;/div&gt;&lt;div style='width: 150px; float: left; padding-left: 5px; font-size: 11px;'&gt;&lt;b&gt;{{ object.title }}&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;{{ object.country.name }}, &lt;nobr&gt;{{ object.date|date:"F Y" }}&lt;/nobr&gt;&lt;br /&gt;&lt;br /&gt;{{ object.info }}&lt;/div&gt;",
                  boxStyle: { 
                      background: "url('/media/images/black_arrow_big.png') no-repeat",
                              width: "310px",
                      height: "165px",
                      padding: "40px 30px 10px 30px",
                      margin: "0px 0px 0px -185px",
                          },
                  closeBoxURL: '',
                  alignBottom: true,
              });
  
              google.maps.event.addListener(futuremap_{{ forloop.counter }}, 'mouseover', function() {
                  am_infowindow[1].close();
                  fm_infowindow[{{ forloop.counter }}].open(map, futuremap_{{ forloop.counter }});
              });
              google.maps.event.addListener(futuremap_{{ forloop.counter }}, 'mouseout', function() {
                  fm_infowindow[{{ forloop.counter }}].close(map, futuremap_{{ forloop.counter }});
              });
  
          {% endfor %}
  </code></pre>