Hi Marcelo, thanks for your reply. I already thought of something like your javascript function to change the style of the newly created elements. changing the global style will produce to much work for my html- guy. :-) that's why I was asking, whether there is any possibility to tell the google maps api that it should use a certain css-class or css- id. But I see this is not the case.
Thanks for your help. Regards Phil On 13 Feb., 16:51, marcelo <[email protected]> wrote: > Phil, > > The thing is that there are many other DIVs, created dynamically by > the API, which you don't see, and they get affected by your global DIV > style as well. > > Either you need to remove that global style, or try restoring all the > internal map DIVs after creating the map, with something like this: > > map = new GMap2(document.getElementById("map_canvas")); > map.setCenter(new GLatLng(37.4419, -122.1419), 13); > > // Get all the child DIVs of the map container and restore their style > var container = map.getContainer() > var children = container.getElementsByTagName('DIV'); > for (var n = 0 ; n < children.length ; n++ ) { > children[n].style.overflow = 'visible'; > > } > > That gets the map to display initially, even if you keep the global > DIV style, but there's no guarantee that it will not raise other > issues. > > -- > Marcelo -http://maps.forum.nu > -- > > On Feb 13, 3:52 pm,phillie<[email protected]> > wrote: > > > Hi Marcelo, > > > thanks for your reply. The problem is, that we have set a style which > > sets the overflow of all divs to hidden. but in this case the map is > > not displayed. see the first line of the style definition. the thing > > is that the div containing the map is within a hierarchy of other divs > > and somehow it inherits this style too. so i tried to set the overflow > > to visible for it is the default value of the div-tag, but i wouldn't > > help. > > > do you probably have any other solution. > > thanks > > phi > > > On 13 Feb., 14:18, marcelo <[email protected]> wrote: > > > > Phil, > > > > Your demo page is one of Google's basic examples, and the answer is > > > simple: > > > Remove the <style> section and it will work like the original. ;-) > > > > In other words, don't mess around with the styles of the div that > > > contains the map. The API will apply its own styles to that div. > > > If your site layout depends on that then apply the styles to a parent > > > div, but not to the map container itself. > > > > In any case, I cannot imagine why you might want to apply > > > overflow:visible to the map container. > > > > -- > > > Marcelo -http://maps.forum.nu > > > -- > > > > On Feb 13, 12:51 pm,phillie<[email protected]> > > > wrote: > > > > > hey marcelo, > > > > > you are absolutely right. I just added the code to show what I've > > > > tried in a simple way. Here is a link, where you can find the map with > > > > the problem. > > > > >http://evkirchenkreis-cottbus.de/map.html > > > > > Hope that this helps and that somebody has any solution. > > > > > Thanks a lot and regards > > > > Phil > > > > > On 12 Feb., 16:38, marcelo <[email protected]> wrote: > > > > > > On Feb 12, 12:08 pm,phillie<[email protected]> > > > > > wrote: > > > > > > > Here is an example sourcecode, that didn't work and has everything I > > > > > > tried inside: > > > > > > Please > > > > > read:http://groups.google.com/group/Google-Maps-API/web/suggested-posting-... > > > > > > -- > > > > > Marcelo -http://maps.forum.nu > > > > > -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
