I'm sure my solution is the only one to be honest. Look at the tutorial map: http://code.google.com/apis/maps/documentation/javascript/examples/map-simple.html
Use Firefox and Firebug and inspect the map type control. The outmost element of the map type control is a div with CSS style margin:5px: <div class="gmnoprint" style="margin: 5px; z-index: 11; position: absolute; cursor: pointer; right: 0px; top: 0px;"> // more html here </div> Martin. On Apr 1, 8:01 am, YeeFung Man <[email protected]> wrote: > thanks a lot. > but I wonder whether Google api has a similar function,thank you. > > 2011/4/1 Martin™ <[email protected]> > > > Use CSS margin styles on your custom control element. > > > <div id="myControl" style="margin-left:10px; margin-top:20px">my html</ > > div> > > > Martin. > > > On Apr 1, 5:01 am, YeeFung Man <[email protected]> wrote: > > > hi,everybody! > > > i have a problem about how to change some codes from v2 to v3. the > > > codes in v2 is that"var pos = new GControlPosition(G_ANCHOR_TOP_LEFT, new > > > GSize(10,20)); " ,then i can find the "ControlPosition"in v3,but it has > > no > > > Parameters,i don't know how to optionally specify an offset. > > > thanks a lot!!! > > > -- > > 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. -- 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.
