Hi there,

I want to get rid off that vertical scrollbar. I Googled it and find a
bunch of answers that I tried in my code and nothing seems to works.
Same with what I've found here. And something strange, only one
InfoWindow does not have a scrollbar (Caserne 67 on Nun's Island/Île-
des-Soeurs). Help me please!


Here's the page I try to fix:
http://www.coderouge.com/carte.html

The code:
function initialiser() {

 var myOptions = {
  zoom: 11,
  center: new google.maps.LatLng(45.555891,-73.711395),
  panControl: false,
  zoomControl: true,
  zoomControlOptions: {
   style: google.maps.ZoomControlStyle.SMALL
  },
  mapTypeId: google.maps.MapTypeId.ROADMAP
 };

 var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
 var casernes = [...(content)...];
 var bulle = new google.maps.InfoWindow();

 function ajouterCaserne(map, caserne) {
  var emplacement = new google.maps.LatLng(caserne[1], caserne[2]);
  var marqueur = new google.maps.Marker({
   position: emplacement,
   map: map,
   icon: 'icon3.gif',
   title: "Caserne " + caserne[0],
   zIndex: 0
  });
  var contenu = "<div style=cursor:default; position:absolute; z-index:
2; overflow:hidden;><p style=font-size:11pt;font-
family:calibri><b>Caserne "+ caserne[0] +"</b><br><font style=font-
size:10pt>Adresse<br>Ville ou arrondissement<br><a href=http://
www.coderouge.com target=new>plus d'infos »</a></p><img
style=display:block; src=http://www.coderouge.com/casernes/casernes/
liste/"+ caserne[0] +".jpg width=125pxl><p style=font-size:10pt;font-
family:calibri>Véhicules:<br>100, 200, 400, 500</p></div>";
  google.maps.event.addListener(marqueur, 'click', function() {
   bulle.open(map,marqueur);
   bulle.setContent(contenu);
   bulle.setPosition(emplacement);
  });
 }

 for (i = 0; i < casernes.length; i++) {
  caserne = casernes[i];
  ajouterCaserne(map, caserne);
 }

}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to