On Mar 4, 10:46 pm, shankar <[email protected]> wrote: > Hi All, > > I tried like this, > > map.openInfoWindowHtml(new GLatLng(30,25),"<div id='divMiniMap' > style='width:600px;height:350px;'></div>"); > map.getInfoWindow().show(); > var MiniMap = new GMap2($("divMiniMap")); > MiniMap.setCenter(new GLatLng(30,25), 6) > > but here the mini map does't get loaded first time. Plz help me..
That won't work. You need to either use a delay (setTimeout) to let the API construct the infoWindow and add it to the DOM before using getElementById to get it (==$) or create the DOM Node with createElement and use openInfoWindow (without the Html). -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
