Thanks all for the suggestions.
1. For print custom markers. I added printImage and it worked. But I
get not get rid of the shadow.
Following is the code.
function getIcon(myImage, w, h)
{
var icon = new GIcon(G_DEFAULT_ICON);
icon.image = "images/" + myImage; // 1. the image
is a simple gif file.
icon.printImage = "images/" + myImage; // 2. After I
added this. It WORKED.
icon.iconSize = new GSize(w, h);
icon.iconAnchor = new GPoint(w/2, h/2);
icon.shadow = "";
icon.printShasow = "images/1x1.GIF";
// 3. I tried empty string also. just can NOT get rid of the
shadow. HELP
return icon;
}
2. I am developing a Windows (not web pages) application. That's why I
don't have a web page for you for look at. But this brought up my new
question about licensing. Do I have to use the premier service? (Note:
My application is for a major chain store. Map is part of the
application. But there are sensitive store information that they do
not want to disclose to the public)
Thanks again for all your help.
John
On Nov 5, 11:23 am, Brian P <[email protected]> wrote:
> I gave up trying to get my map to resize properly when printed. I
> wanted to define the map width to something like 80% in the browser,
> and something else appropriate for the printed page. However, it never
> properly centered when printed. I did all kinds of things to try to
> fix it, none worked. I did things like using a second map sync'd to
> the first that would only be displayed on printed media, trying to set
> a listener for resize of the map div, trying to re-center the map
> every 500 ms--none of the things I tried worked.
>
> I finally ended up just defining the map div in pixels, and it seems
> to print fine. I agree with Brad, web browsers do a horrible job
> printing. And trying to make your page work across browsers makes it
> even worse. Your best bet is to use a link that opens a new window
> with your map div defined in pixels, sized appropriately for printing.
> When the new map div is created it should be centered properly. Then
> you print from the new window. I didn't do that because I personally
> don't like having to click a link for a printable version. I preferred
> having a pixel-sized div to that. With CSS that shouldn't be needed,
> but it just doesn't work the way it should.
>
> Don't know what to say about your custom markers.
>
> -Brian
>
> On Nov 5, 5:19 am, Andrew Leach <[email protected]> wrote:
>
>
>
> > On Nov 5, 6:51 am, Rene Florendo <[email protected]> wrote:
>
> > > My suggestion is, you have to find a web service that capture your page
> > > and
> > > save it to a pdf file, jpeg,gif
>
> > While there's no reason not to suggest that, I would also suggest that
> > it's against several of the Terms of Service (eg 10.1, 10.2, 10.3).
> > The recommended method is to create a map the right size for the
> > printer.
>
> > 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.