Mercurial > public > sg101
comparison bandmap/static/js/bandmap.js @ 832:c285a86fb4d5
Bandmap: add maxWidth param to InfoWindow ctor.
Hopefully this helps with weird display issues with text
getting cut off or scrollbars appearing.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 28 Sep 2014 21:12:01 -0500 |
parents | b9973588af28 |
children | 497c720f9d0d |
comparison
equal
deleted
inserted
replaced
831:0f9c014c8adc | 832:c285a86fb4d5 |
---|---|
71 | 71 |
72 $(document).ready(function() { | 72 $(document).ready(function() { |
73 var map_div = $('#map-canvas'); | 73 var map_div = $('#map-canvas'); |
74 if (map_div.length) { | 74 if (map_div.length) { |
75 bandmap = new google.maps.Map(map_div[0], map_options); | 75 bandmap = new google.maps.Map(map_div[0], map_options); |
76 info_win = new google.maps.InfoWindow(); | 76 info_win = new google.maps.InfoWindow({maxWidth: 300}); |
77 $('#map-filter-go').click(refreshMap); | 77 $('#map-filter-go').click(refreshMap); |
78 $('#map-bands').change(function() { | 78 $('#map-bands').change(function() { |
79 var n = $('option:selected', this).val(); | 79 var n = $('option:selected', this).val(); |
80 if (n != -1) { | 80 if (n != -1) { |
81 info_win.setContent(surfbands[n].note); | 81 info_win.setContent(surfbands[n].note); |