I'm doing the same as provided above:
(skiped code)
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
}
</script>
</head>
<body onload="initialize()" >asd
<div class = "site-wrapper">
<div id="map_canvas"></div>
</div>
If <div class = "site-wrapper"> div is removed, it works.
So i think that java can't get to the getElementById(...).
Why i need div 's - i want to have map size/place customized.
Examples are located here
http://it.tvarkau.lt/maps.html simple map example
http://it.tvarkau.lt/maps1.html trying to customize with one div
class.
Regards,
Saulius
On Nov 29, 12:24 am, "[email protected]" <[email protected]>
wrote:
> On Nov 28, 4:59 pm, "saulius.s" <[email protected]>
> wrote:
>
>
>
> > Hi,
>
> > facing a problem when
> > have something like this
> > source is smth like this:
> > var map = new google.maps.Map(document.getElementById("map_canvas"),
> > myOptions);
> > ............
> > <div class = "header-wrapper">
> > <div class = "first-header-row">
> > <div class = "header-logo">
>
> > here want to have my map...
> > <div id="map_canvas"></div>
>
> > </div>
> > </div>
> > </div>
>
> > As i noticed if i use map_canvas in upper layer it works, but in my
> > case i need it this way...
> > Any ideas how to have it working?
>
> There should be no problem doing that. Are you trying to specify the
> size of your map as a percentage?
> (or possibly not specifying the size at all)
>
> If that total guess doesn't help, please follow the posting guidelines
> and post a link to your map that exhibits the
> problem:http://groups.google.com/group/google-maps-js-api-v3/browse_frm/threa...
>
> -- Larry
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.