On May 30, 3:10 pm, JavaJive <[email protected]> wrote:
>
> So in effect I can't make it print.  I've tried ...
>         customUI.controls.scalecontrol = false;
>         GoogleMap.addControl
>                 (
>                 new google.maps.ScaleControl(true),     // also 
> {printable:true}
>                 new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(71,8))
>                 );
> ... but not only does it still not appear in print preview, but, even
> worse, it's collapesed upon itself.

It's collapsed because of the "true" in
  new google.maps.ScaleControl(true)
It works if you use the documented form
  new google.maps.ScaleControl()

What happened to this bit of my reply?
> To make it printable, you need to set the class of HTML element
> "scalecontrol" to something other than "gmnoprint".

It's the HTML div which contains the scale control which is set not to
print. You need to override that. It's standard CSS.

I agree that the scale should be printable by default; and I reckon
the Google logo and copyright string should be printed, too. The only
things which aren't necessary on a printed copy are the zoom/pan
control and the maptype control.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to