Hi, Kris,
I test with
function Mostrar()
{
alert(map.getBounds());
}
but there are error "map.getBounds() is not function", How I can implement this
regardas salas
----- Original Message -----
From: Kris Geusebroek
To: fsalas
Cc: [email protected]
Sent: Thursday, September 24, 2009 7:05 AM
Subject: RE: [OpenLayers-Users] How Print openlayer Maps into pdf documents
Hi salas,
You can ask your map for the current bbox. I believe its called getBounds()
function.
Cheers Kris
From: fsalas [mailto:[email protected]]
Sent: Thursday, September 24, 2009 2:42 PM
To: Kris Geusebroek
Cc: [email protected]
Subject: Re: [OpenLayers-Users] How Print openlayer Maps into pdf documents
Thanks Kris, I find the example in geoserver but , how i can change the BBox
dinamicaly in my code , for example when I zoom the region I need print this
maps How I can make this ?
regards salas
----- Original Message -----
From: Kris Geusebroek
To: fsalas
Sent: Thursday, September 24, 2009 1:35 AM
Subject: RE: [OpenLayers-Users] How Print openlayer Maps into pdf documents
Hi Salas,
If you have a installation of geoserver you can find an example in the map
preview demo section (just like the OpenLayers examples
For example something like this (you need to change the bbox, srs and layer
according to your data)
http://localhost:8080/geoserver/wms?bbox=-14231.825,274059.86,305770.825,651904.14&styles=&Format=application/pdf&request=GetMap&version=1.1.1&layers=testLayer&width=516&height=550&srs=EPSG:28992
Hope this helps.
Remember that this will only allow you to generate pdf of layers you server
with geoserver and not for example a google baselayer
Cheers Kris
From: fsalas [mailto:[email protected]]
Sent: Thursday, September 24, 2009 1:07 AM
To: Kris Geusebroek
Subject: Re: [OpenLayers-Users] How Print openlayer Maps into pdf documents
Kris, Thanks, but I need an example of like make wms request with format
application/pdf
can you help me?
regards Salas
----- Original Message -----
From: "Kris Geusebroek" <[email protected]>
To: "Alexandre Dube" <[email protected]>; "fsalas" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, September 02, 2009 3:34 PM
Subject: RE: [OpenLayers-Users] How Print openlayer Maps into pdf documents
Hi,
If you are using geoserver you can create a wms request with format
application/pdf et volia!
Cheers Kris
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Alexandre Dube
Sent: Wednesday, September 02, 2009 5:29 PM
To: fsalas
Cc: [email protected]
Subject: Re: [OpenLayers-Users] How Print openlayer Maps into pdf documents
Hi,
Did you read http://trac.openlayers.org/wiki/Printing ?
About eh ezpdf class extension, are you talking about this :
http://www.ros.co.nz/pdf/ ? If so, that's the lib I used with
phpMapScript to accomplish some printing, but it supports WMS only and I
use Ext to make my form. So take this example as a proof of concept
only. See at :
http://dev4.mapgears.com/wmsprint/
MapFish has a much more better printing tool and it supports Vector
features printing.
Best of luck,
Alexandre
fsalas wrote:
> Hi all,
>
> I'm trying to print the current image maps into pdf documents
> using the *EZPDF Class Extension,* but don´t work.
>
> some body know how i cant implement this.
>
> Thanks ,
>
> salas
>
> ___________________________________
> Dirección de Comunicaciones
> Grupo Empresarial GEOCUBA
> Este mensaje esta libre de virus.
> Revisado por Kaspersky Antivirus
> ----------------------------------------------------------------------
> Definition count: 2365875 Definition date: 8/11/2009 SecurityPlus
> version: 3.0.5
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users
___________________________________
Dirección de Comunicaciones
Grupo Empresarial GEOCUBA
Este mensaje esta libre de virus.
Revisado por Kaspersky Antivirus
----------------------------------------------------------------------
Definition count: 2618974 Definition date: 9/23/2009 SecurityPlus version:
3.0.5
___________________________________
Dirección de Comunicaciones
Grupo Empresarial GEOCUBA
Este mensaje esta libre de virus.
Revisado por Kaspersky Antivirus
----------------------------------------------------------------------
Definition count: 2645353 Definition date: 9/24/2009 SecurityPlus version:
3.0.5
___________________________________
Dirección de Comunicaciones
Grupo Empresarial GEOCUBA
Este mensaje esta libre de virus.
Revisado por Kaspersky Antivirus
----------------------------------------------------------------------
Definition count: 2645353
Definition date: 9/24/2009
SecurityPlus version: 3.0.5
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users