Hello , Sorry by mistaken i written two API at same time .i m using 2.115
On Nov 25, 10:00 pm, kunal <[email protected]> wrote: > Hello , > > I m trying to placing gif image on Google Map API but i m getting > error 'mb' is null or not object.this error ocurred in IE7 .its > working on IE6. > > Below is my code : > This is the exmaple > > <%@ Page Language="VB" AutoEventWireup="false" > CodeFile="frmMaptest.aspx.vb" Inherits="frmMaptest" %> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas- > microsoft-com:vml"> > <head> > <meta http-equiv="content-type" content="text/html; charset=utf-8"/> > <title>Google Maps JavaScript API Example: Simple Polyline</title> > > > <script src="/key.js" type="text/javascript"></script> > <script type="text/javascript"> > var scriptTag = '<' + 'script src="http://maps.google.com/maps? > file=api&v=2.115&hl=en&key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1- > m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA">'+'<'+'/script>'; > document.write(scriptTag); > </script> > > <script src="/MStatusControl.js"></script> > <script type="text/javascript"> > > var map; > var marker1; > var container; > var opacity = 0.4; > var centerMarker; > var centerPoint = new GLatLng(39.547603236279684, -75.58164596557617); > > function initialize() { > if (GBrowserIsCompatible()) { > //var map = new GMap2(document.getElementById("map_canvas")); > > container = document.getElementById("map_canvas"); > > map = new GMap2(container, {draggableCursor:"crosshair"}); > map.setCenter(new GLatLng(39.547603236279684, > -75.58164596557617), > 13); > map.setCenter(centerPoint, zoom); > > map.addControl(new GScaleControl()); > map.addControl(new GLargeMapControl()); > map.addControl(new GMapTypeControl()); > > // map.enableContinuousZoom(); > map.enableScrollWheelZoom(); > > var baseIcon = new GIcon(); > baseIcon.iconSize = new GSize(20, 34); > baseIcon.shadowSize = new GSize(37, 34); > baseIcon.iconAnchor = new GPoint(9, 34); > baseIcon.infoWindowAnchor = new GPoint(9, 2); > baseIcon.infoShadowAnchor = new GPoint(18, 25); > > icon1 = new GIcon(baseIcon); > icon1.image = "images/green_MarkerW1.gif"; > marker1 = new GMarker(new GLatLng(39.40888888888889, > -75.55388888888889),icon1); > map.addOverlay(marker1); > > } > } > > </script> > </head> > > <!--<body onload="initialize()" >--> > <body > > > <form id="form1" runat="server"> > > <div id="map_canvas" style="width: 700px; height: 750px"> > > </div> > > </body> > </html> -- 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.
