javascript - how to load a webpage into the google map bubble rather than a textnode of text -


Instead of using textnode to show content, try to learn how to load a webpage with parameters in Google Maps I am doing

  If (GBrowserIsCompatible ()) is working with {var map = document.getElementById ("map_canvas"); Var M = new GMAP2 (map); M.setCenter (New GLatLng (36.158887, -86.782056), 13); M.openInfoWindow (m.getCenter (), document.createTextNode ("This is our business.")); M.setMapType (G_SATELLITE_MAP); Var c = new GMapTypeControl (); M.addControl (c); M.addControl (new GLargeMapControl ());  

}

I have a short javascript, how would I load webpage content instead of using createtextnode with text?

Try making IFRAME:

  var iframe = document.createElement ('iframe)  

');

Setting up more sources:

  iframe.src = 'http://www.google.com/?with&whatever&parameters';  

and use it instead of the text node:

  m.openInfoWindow (m.getCenter (), iframe);  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -