Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18835

Re: problem with google map when using IE 10

From "Tony" <tony.johansson@inport.com>
Newsgroups comp.lang.javascript
Subject Re: problem with google map when using IE 10
Date 2013-03-11 10:05 +0100
Organization A noiseless patient Spider
Message-ID <khk6la$6va$1@dont-email.me> (permalink)
References <khk1f5$h4q$1@dont-email.me> <xZKdnVv8dttDC6DMnZ2dnUVZ_rCdnZ2d@westnet.com.au>

Show all headers | View raw


This line
   google.load("maps", "2", { "other_params":"sensor=false" });
cause in swedish
"Körningsfel i JavaScript: google har inte definierats"
and translated to english it it's
runtime error in Javascript google has not been defined

//Tony



"Andrew Poulos"  wrote in message 
news:xZKdnVv8dttDC6DMnZ2dnUVZ_rCdnZ2d@westnet.com.au...

On 11/03/2013 6:36 PM, Tony wrote:
> <!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"/>
>       <script type="text/javascript"
> src="http://www.google.com/jsapi"></script>
>       <script type="text/javascript">
>           google.load("maps", "2", { "other_params":"sensor=false" });
>
>           function init()
>           {
>               map = new google.maps.Map2(document.getElementById("map"));
>               var myLatLng = new google.maps.LatLng(58.135148,
> 12.122726, true);
>               map.setCenter(myLatLng, 15);
>               var myMarker = new google.maps.Marker(myLatLng, { "title":
> "Eken" });
>               map.addControl(new google.maps.LargeMapControl());
>               map.addControl(new google.maps.MapTypeControl());
>               map.setMapType(G_SATELLITE_MAP);
>               map.addOverlay(myMarker);
>           };
>           google.setOnLoadCallback(init);
>       </script>
>       <title>My first Google Map</title>
>    </head>
>    <body>
>       <div id="map" style="width: 400px; height: 400px; margin: auto;
> background-color: red">
>          This is where the map will soon appear.
>       </div>
>    </body>
> </html>

Which line gives the error?

Andrew Poulos 

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

problem with google map when using IE 10 "Tony" <tony.johansson@inport.com> - 2013-03-11 08:36 +0100
  Re: problem with google map when using IE 10 Andrew Poulos <ap_prog@hotmail.com> - 2013-03-11 19:33 +1100
    Re: problem with google map when using IE 10 "Tony" <tony.johansson@inport.com> - 2013-03-11 10:05 +0100
      Re: problem with google map when using IE 10 Andrew Poulos <ap_prog@hotmail.com> - 2013-03-11 20:27 +1100
        Re: problem with google map when using IE 10 "Tony" <tony.johansson@inport.com> - 2013-03-11 10:52 +0100
          Re: problem with google map when using IE 10 "Tony" <tony.johansson@inport.com> - 2013-03-11 12:37 +0100
            Re: problem with google map when using IE 10 "Tony" <tony.johansson@inport.com> - 2013-03-11 13:25 +0100

csiph-web