[OpenLayers-Users] Print and Save Maps images

Chris Hardin chrislhardin at gmail.com
Thu Aug 23 09:46:51 EDT 2007


How would that work? The user might have several overlays and other
options and you'd have to build that representation from the map
server as well. It would seem that it would be simpler just to add a
print icon to the map window that would print the map window as is and
a save button to save it as an image, of course I have no clue how to
do that part without the use of some browser plugin like the acrobat
plugin.
The printing and saving could be part of the Editing toolbar and it
would need to be done on the client side with little server
interaction since the state of the map is not known from the server
side.

Chris



On 8/23/07, el* <eleanor at rhcda.com> wrote:
>
> I have been struggling a lot with printing (with or without legends, etc),
> so, although I am definitely not an OpenLayers expert, I expect I know the
> answer to your question.
>
> Basically, to print the map you see on the screen, you need to gather the
> bounds of the map you are looking at (map.getextent), gather the information
> about which layers are turned on (map.layers.getvisibility), and then pass a
> new request to your server (geoserver, mapserver) asking for a PDF or jpeg
> or whatever.
>
> --Eleanor
>
>
> Chris Hardin wrote:
> >
> > Is there a tool that will allow me to print and save the image in the
> > map window?? Is something built into Open Layers for this or is there
> > a third party solution?
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Print-and-Save-Maps-images-tf4313948.html#a12293755
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


-- 
Chris Hardin
Software Architect
Archetype Corporation



More information about the Users mailing list