printing custom tile maps.

Hi..


I am encountering a situation with printing the VEMap and I can not find a solution..so I hope one of you out there knows about this problem..

When I add custom layers (composed of transparent .png tiles containing visual information) from my server on top of the VEMap only the top layer of the map will print.

The implementation of my server and client is described here http://www.viavirtualearth.com/vve/Articles/RollYourOwnTileServer.ashx

Only the last added layer will print. The odd thing is that if I try to print preview it, it behaves correctly and it displays the whole map with its added layers... if I try to print it though.. it prints just the last added layer.

Any clues or help are very welcome!!

Thanks




Answer this question

printing custom tile maps.

  • hoobler

    kins_z,

    We are also seeing this issue and we are also using our server to layer data on top of the visual earths aerial maps. This is not a IE only issue and I we get the same exact behavior. When we try and print we get the our layer only printed and it is munged up (Tiles don't seem to be lining up properly).

    We are getting ready to release and this is a big issue for us. So far we have not found a solution...

    Any help I would really be surprised if this is not a known issue.


  • AndyL

    There is a problem in the shifting of the tiles when printing...I was able to merge two layers onto one (by using the graphics class)...
    the other problem that I encounter now.. is that the tiles on the boundary of the map will shift usually to the right and the rest of the tiles will not shift.. this will cause inconsistencies with the map info.. there isn't any problem with the divs aside from not working (I gave up on that option because there is no chance of fixing it from my end) on VEMaps.. that can be solved by checking the IE option of print background pictures on other working services.

    I am still puzzled from this incorrect behavior of VEMap ...

    Any help with this one





  • Joshizzle

    i wonder if it simply something to do IE and tring to print semi-transparent layers

    Have you tried printing in Firefox I guess a simply test would be to put 2 divs on a page, the top one semi transparent and see if it prints ok.

    John.



  • Secsi

    kins_z can you elaborate on your solution I have the same problem with the Google API in printing custom tiles. I'd like to hire a programmer to assit with this problem as we need a solution rather quickly. please email me directly if you can my email address is jason<at>jjconcepts.com <edited for posting>

    Thanks

    Jason


  • gafferuk

    From my observations on 2d vemap will not cut the border tiles viewable from the containing div.. instead it will shift them by as much as to fit the left corner of each tile in the edge of your div...thus deforming the image being printed. Aside from the above only the last added layer will be visible to the printer.

    My solution.

    When printing .. i open a new window I pass the center ,zoom , and layers of the map to a service that will recreate part of the map that will fit on a a4 printable paper (same behavior as ms or google) (basically a 3 X 4 tile map) with one of the center tiles containing the middle of the map viewable on the div . The recreation is done the same way you add the tiles + requesting the base map tiles from miscrosoft rX servers .
    One trick that I had to use is the merging of all layers onto one image and then after the image is created on the service part I stream it back to the requesting printing client.

    cheers.




  • JLMontero

    I'm not sure what's happening in 2D, but have you tried printing from 3D mode In 3D, the tile entire map is a single image, so there's less that the browser can muck up while printing.
  • printing custom tile maps.