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. 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.
TIA for any help offered.
Non-working code:
GoogleMap = new google.maps.Map2( document.getElementById(aMapDiv) );
var result = "";
var customUI = GoogleMap.getDefaultUI();
for( var i in customUI.controls )
{
var printable = (i == customUI.controls.scalecontrol);
alert( printable );
i.printable = printable;
result += i + ":\t" + customUI.controls[i] + "\t" + i.printable +
"\n";
}
alert( result );
GoogleMap.setUI( customUI );
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---