If you want to change ALL gmnoprint classes to enable printing, you
don't have to use javascript. Just put this in your page, (I think it
has to be AFTER your google stuff in the head):
<style type="text/css">
@media print {
#map .gmnoprint {
display:inline;
}
}
</style>
That assumes your map div is called "map." you could also remove the
"#map" part if you don't use the "gmnoprint" class anywhere else.
Of course, keep in mind that affects anything Google doesn't think you
want when printing. Lots of times that's for good reason. You can also
use an exclamation point to make sure your CSS definition sticks. Read
up on CSS.
If you use the javascript Marcelo linked you can change the
"printability" of the gmnoprint class on the fly. I don't think that's
what you need though.
-Brian
On Jan 27, 11:50 am, Marcelo <[email protected]> wrote:
> On Jan 27, 5:33 pm, Notcher <[email protected]> wrote:
>
> > I hadn't considered that...I'm new to this (can you tell?) and
> > overwriting my own .css might sound more complicated to me than it
> > actually is. In other words, how would I do that?
>
> For
> example:http://www.shawnolson.net/a/503/altering-css-class-attributes-with-ja...
>
> The actual script is
> here:http://www.shawnolson.net/scripts/public_smo_scripts.js
>
> But, keep in mind what Andrew said. The class .gmnoprint is used
> extensively in the API, and if you alter it, all elements using it
> will be affected. This may or may not produce undesired effects.
>
> --
> Marcelo -http://maps.forum.nu
> --
>
>
>
> > Thanks for your post, Marcelo!
>
> > On Jan 27, 11:15 am, Marcelo <[email protected]> wrote:
>
> > > On Jan 27, 4:23 pm, Notcher <[email protected]> wrote:
>
> > > > Here's a link to the map:http://www.tierravt.com/api_test.html
>
> > > Ahh, now it's an API map. :-)
> > > Did you consider overwriting the class .gmnoprint in your own .css
> > > instead of changing the class name?
>
> > > --
> > > Marcelo -http://maps.forum.nu
> > > --
--
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.