jquery - Google Maps v2 GGroundOverlay not rendering until screen resize -


i'm working on google map based thing using v2 (which know deprecated, it's legacy code). have function call in several places (picking existing "pin", dropping new "pin") renders images "range" around selected point.

the "map" that's passed in here gmap object. centrept glatlng, , rangevalue int, gotten jquerytools slider control.

function drawcircle(map, centrept, rangevalue) {     if (circle) {         map.removeoverlay(circle);     }      var boundaries = getboundaries(centrept, rangevalue);      circle = new ggroundoverlay("/images/map_range.png", boundaries);      map.addoverlay(circle);  } 

i have running on many pages, , in many contexts works great.

in 1 particular page, image @ /images/map_range.png doesn't display. slider slides, values underlying update (i'm watching firebug), function fires (and writes console, when had in there), no circle... until window resizes. literally can slide on slider, no circle, resize window few pixels, slide on slider, , circle.

why window resize make work? thoughts? cause i'm stumped.

i tried generating window resize, evidently i'm not allowed mess size of window didn't launch, guess on balance approve of.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -