On May 30, 2:11 pm, JavaJive <[email protected]> wrote: > I have a working example of a Google map with a draggable direction > marker... > http://www.macfh.co.uk/Test/Google_with_Google.html > ... but the scaleline doesn't print. > > I've tried the following code, but it doesn't make difference.
That's because "printable" isn't a property of the scalecontrol. In fact "scalecontrol" is a property of getDefaultUI().controls: it's "true" if the scale is present. To make it printable, you need to set the class of HTML element "scalecontrol" to something other than "gmnoprint". Note that the element id may be removed in a future release, because the API produces invalid HTML if you have more than one map on a page. Hopefully Google will use a class called "scalecontrol" and style that, rather than calling every div with a scalecontrol "id=scalecontrol" and putting them in a non-printing class. See issue 1312 about this. http://code.google.com/p/gmaps-api-issues/issues/detail?id=1312 > Also, > I want to adjust the position of the scale line, and perhaps other > controls, and the examples don't clarify how to do this without > recreating all the controls and specifying the position in the > constructor. That's right. You can either use the default user interface, or you can add controls yourself. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
