Right on the money. Works perfectly now. Thank you so much. The change
I made was in the UI dialog: (irrelevant parts omitted)
$myMap.dialog({ //dialog UI
open: function() { //window open event
$myMap.jmap('CheckResize'); //jmaps calls
checkResize()
$myMap.jmap('MoveTo',{
'mapCenter':[38.824447,-97.199006]
//jmaps calls setCenter(new
GLatLng())
});
}
});
Thanks again!
On Dec 19, 11:17 am, ProbablyMike <[email protected]> wrote:
> Looking at what is going on, I would guess that you're not doing a
> checkResize() on the map when displaying it as it's containing <div>
> has changed size.
On Dec 19, 11:21 am, "warden [Andrew Leach - Maps API Guru]"
<[email protected]> wrote:
> On Dec 19, 4:10 pm, Jake <[email protected]> wrote:
>
> >http://www.jacobkking.com/demos/mapsAPI/
>
> If you have a look at the overview map, the blue rectangle in the
> middle of it represents the main map area. It's tiny. In fact the API
> thinks the main map has a size of 0x0 pixels, so it's centred on the
> top-left-hand corner.
>
> Resizing the window will cause the API to recalculate the map: "Ooh!
> the div has changed size and it's now 600x400" or whatever.
>
> Either specify a {size} option when you create your map so the API
> knows the size the map will end up at when it's created, or include a
> map.checkResize() when it's made visible.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---