Is the custom control inside of a div that is itself inside of the map's div?
The controls will scale based on their containing divs. Thus, if, say, you have a containing div with elements inside of it, scaling any of the elements inside of it to 100% will only scale them to the width of the widest element inside of the container. I've made a quick map for you to reference, so you can see what I mean. Just take a look at the page source. Hopefully this helps. You can view it here: http://www.dougglover.com/samples/UOITMap/controlOverlay/index.html Cheers. On Apr 29, 7:05 am, Alper Dincer <[email protected]> wrote: > Hi, > > I have a map layout with fit to browser (width:100%, height: 100%) and > I just want to add a custom control over map div with 100% width, but > div style doesn't accept the 100 percent value. > It can get pixel values but not percent values. > > Is there any trick to add such kind of control to map? > > Alper. > > -- > 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 > athttp://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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.
