[Cartoweb-users] ExportHtml Always

Fred Bauer kerso68 at hotmail.com
Mon Jul 25 06:20:25 EDT 2005

Ok I make it work.
In fact I modified a part of the plugin code:

In this part of the code :

" $smarty->assign(array('exporthtml_mainmap'  => $this->getBaseUrl()
                             'exporthtml_keymap'   => $this->getBaseUrl()
                                   . $mapResult->imagesResult->keymap->path,
                             'exporthtml_scalebar' => $this->getBaseUrl()
                             'exporthtml_legends' => $legends));

I replace $this->getBaseUrl() by "http://localhost/cartoweb3/htdocs/". it 
isn't very fine because the path is not in a variable but it works.

I have just another question. How can I recover the legend icons. The label 
is present, but I need the icons too.

It must be something like label revovering :
foreach ($mapRequest->layersRequest->layerIds as $layerId) {
           $layer = $mapInfo->layersInit->getLayerById($layerId);
           $legends[] = array('label' => $layer->label);

a keyword in $layer-> '''icons''''?



From: "Fred Bauer" <kerso68 at hotmail.com>
To: kerso68 at hotmail.com
Subject: RE: [Cartoweb-users] export Html
Date: Mon, 25 Jul 2005 08:57:06 +0200


Can anybody tell me, if the exportHtml plugin is working or if it exists a 
problem with it?
I would know, if it is a problem with the template or with te plugin code.

I need it, so if sombody can help me !


From: "Fred Bauer" <kerso68 at hotmail.com>
To: cartoweb-users at lists.maptools.org
Subject: [Cartoweb-users] export Html
Date: Mon, 18 Jul 2005 15:12:31 +0200

I don't soluce the problem, if you can help me !

When I use the exportHtml plugin. The images don't appear on my page (red

The images URL are :

Th URL of the images seems to be right because on the main working page of 
the site, the url of icons are like this :

that means searching the icons in :

So for the images in html export the repertory is : .
The images exist, that means if I write the adresse in the navigator (, for 
exemple) the image appears.

The matter must concern the template file. I use the default one.

Does it work by anyone?

If somebody can bring me some answers,that would be sympathetic, thanks.



I really don't understand how the mailing-list is working!! Because as you 
can see, I tryed to use the thread struture by answering my questions, but 
my messages don't appear in the archive.
What must I do ?


MSN Search : des réponses à tous vos besoins ! 

More information about the Cartoweb-users mailing list