Hello,

to get the current map as a raw image, you may add a link/button in your layout with your CartoWeb standard URL and a mode=image parameter. For instance:
http://your.site/?mode=image

The output format is the same than the current map. Actually it's the same image without the whole HTML stuff around. I don't think you can have the user switch the format with the existing CartoWeb parameters.

If it is necessary, you'll have to extend the images coreplugin to make its client part detect the user choice, transmit it to the server part and have the server part use the correct outputformat. For instance you may have a look at ServerImages::handleCorePlugin() and its selectOutputFormat() stuff.

AS

Dirk Jesko wrote:
Hello,

I would like to save the current map as JPEG or PNG. The user shall decide about the format. Is this possible? If yes, please let me know how.

Thanks,
Dirk
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to