سؤال

Does anyone know how to apply size to the info window? Thanks.

map_container.gmap('addMarker', markerOptions).click(function () {
   map_container.gmap('openInfoWindow', { 
      'content':this.description, 
       'size': WHAT GOES HERE?
    }, this);
});
هل كانت مفيدة؟

المحلول

Resolved.

For anyone else, documentation is at https://developers.google.com/maps/documentation/javascript/reference?hl=sv-SE#InfoWindowOptions

map_container.gmap('addMarker', markerOptions).click(function () {
   map_container.gmap('openInfoWindow', { 
      'content':this.description, 
      'maxWidth': '200'
    }, this);
});
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top