javascript - GoogleMap offsetWidth problem -


I have a problem displaying GoogleMap.

Here is the website source code:

When I'm trying to run this website, the map is not displayed. Firebug Console says,

Do you have any idea what I am doing wrong? I know that there are many working examples on Pure but this code is generated from a special script and I am not able to interfere too much to it. Maybe I forgot to forget some variables?

Thanks, Mike

=================

Edit: This code is working only when I will put JS in function definition and call it in body overload param. Do you have any idea how I can work without using such functions and onload param?

I know it's probably been a while - but hopefully it helps someone else Will not find: In your case the initial function is not firing, although it may also be due to the width and height of the container being set on the device if you do not want to add load events only to body tags. If you want to, you can use the following jQuery:

  // addload to body $ (window). Load (function () {start ()});    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -