Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
print map problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jzerohn  
View profile  
 More options Nov 4, 5:55 pm
From: jzerohn <jzerohnc...@gmail.com>
Date: Wed, 4 Nov 2009 14:55:46 -0800 (PST)
Local: Wed, Nov 4 2009 5:55 pm
Subject: print map problem
I have Windows Application which host a browser control to show the
map. But I have couple issue printing the map. (I uses window.print()
to print the map).

1. The map is not re-centered when printing. I have a big screen and
it is nice to see a large area. But it only print out half of the map
because of the page size. How can I re-center it?

2. My custom marker/icon is not showing up. it shows the default icon.
Could it be that I am using marker manager?

Thanks.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
geocodezip@gmail.com  
View profile  
 More options Nov 4, 7:05 pm
From: "geocode...@gmail.com" <geocode...@gmail.com>
Date: Wed, 4 Nov 2009 16:05:11 -0800 (PST)
Local: Wed, Nov 4 2009 7:05 pm
Subject: Re: print map problem
On Nov 4, 2:55 pm, jzerohn <jzerohnc...@gmail.com> wrote:

> I have Windows Application which host a browser control to show the
> map. But I have couple issue printing the map. (I uses window.print()
> to print the map).

Where is the map?

> 1. The map is not re-centered when printing. I have a big screen and
> it is nice to see a large area. But it only print out half of the map
> because of the page size. How can I re-center it?

I don't know that this is really a "Google Maps API" question, I would
think it would be a general html/css question and the answer would
involve print specific css.

> 2. My custom marker/icon is not showing up. it shows the default icon.
> Could it be that I am using marker manager?

A link to your map would help...
What are you setting the icon print images to?

http://code.google.com/apis/maps/documentation/reference.html#GIcon.p...
http://code.google.com/apis/maps/documentation/reference.html#GIcon.m...

  -- Larry


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bradlymathews  
View profile  
 More options Nov 5, 12:56 am
From: bradlymathews <bradlymath...@gmail.com>
Date: Wed, 4 Nov 2009 21:56:38 -0800 (PST)
Local: Thurs, Nov 5 2009 12:56 am
Subject: Re: print map problem
If I understand your centering issue correctly, you need to size your
map to the printer. In other words, find what web page width will fit
your printer and make sure the page, including the map is no larger
than that. As Larry suggested, this is an html/css issue.

For the icons, you need to specify different icons for your markers to
use for printing.

Look at the GIcon class section of the GMaps docs. You will need to
supply the icons for printImage and/or mozPrintImage. Be aware that
there are issues printing transparent images on some browsers like
IE6.

Web browsers generally do a very poor job printing, the web was never
designed with printing in mind, and all of the browser developers are
basically ignoring the proposed solutions in CSS 3.

- Brad

On Nov 4, 4:05 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin  
View profile  
 More options Nov 5, 1:32 am
From: Martin <warwo...@gmail.com>
Date: Wed, 4 Nov 2009 22:32:04 -0800 (PST)
Local: Thurs, Nov 5 2009 1:32 am
Subject: Re: print map problem
You can see what marker properties you need to define for printing
here:

http://econym.org.uk/gmap/custom.htm

Martin.

On 5 Nov, 05:56, bradlymathews <bradlymath...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rene Florendo  
View profile  
 More options Nov 5, 1:51 am
From: Rene Florendo <reneflore...@gmail.com>
Date: Thu, 5 Nov 2009 14:51:45 +0800
Local: Thurs, Nov 5 2009 1:51 am
Subject: Re: print map problem

My suggestion is, you have to find  a web service that capture your page and
save it to a pdf file, jpeg,gif  or a html file just like this,
http://aviary.com/launch/talon.
I have worked this before but I forgot the link of web service,from this
your image from your big screen will be converted into a pdf or jpeg, or gif
format , of course your image will be adjusted to fit the normal size of the
rendered file.
Then ,you are now free to print your map, the problem here is
the orientation of the page so have to adjust manually the orientation of
the page.

On Thu, Nov 5, 2009 at 1:56 PM, bradlymathews <bradlymath...@gmail.com>wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Leach  
View profile  
 More options Nov 5, 5:19 am
From: Andrew Leach <acle...@btinternet.com>
Date: Thu, 5 Nov 2009 02:19:07 -0800 (PST)
Local: Thurs, Nov 5 2009 5:19 am
Subject: Re: print map problem
On Nov 5, 6:51 am, Rene Florendo <reneflore...@gmail.com> 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


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian P  
View profile  
 More options Nov 5, 12:23 pm
From: Brian P <brianpey...@gmail.com>
Date: Thu, 5 Nov 2009 09:23:38 -0800 (PST)
Local: Thurs, Nov 5 2009 12:23 pm
Subject: Re: print map problem
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 <acle...@btinternet.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jzerohn  
View profile  
 More options Nov 5, 6:31 pm
From: jzerohn <jzerohnc...@gmail.com>
Date: Thu, 5 Nov 2009 15:31:43 -0800 (PST)
Local: Thurs, Nov 5 2009 6:31 pm
Subject: Re: print map problem
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 <brianpey...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google