[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()
.
$mapResult->imagesResult->mainmap->path,
'exporthtml_keymap' => $this->getBaseUrl()
. $mapResult->imagesResult->keymap->path,
'exporthtml_scalebar' => $this->getBaseUrl()
.
$mapResult->imagesResult->scalebar->path,
'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''''?
Fred
_______________________________________________________________________________
-------------------------------------------Previous
messages----------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------
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
Hi,
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 !
Fred
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
Hi,
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
crosses).
The images URL are :
http://10.68.1.16/cartoweb3/r.php?k=g&r=images%2F112045984682058.jpg
http://10.68.1.16/cartoweb3/r.php?k=g&r=images%2F112045984682059.jpg
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 :
http://10.68.1.16/cartoweb3/htdocs/r.php?k=g&r=icons%2FDDAF14%2FDDAF12%FPPE_class_0.png
that means searching the icons in :
http://10.68.1.16/cartoweb3/www-data/icons/DDAF14/DDAF12/
So for the images in html export the repertory is :
http://10.68.1.16/cartoweb3/www-data/images/ .
The images exist, that means if I write the adresse in the navigator (
http://10.68.1.16/cartoweb3/www-data/images/112045984682058.jpg, 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.
Fred
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------_______________________________________________________________________________
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 ?
Fred
_________________________________________________________________
MSN Search : des réponses à tous vos besoins !
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR
More information about the Cartoweb-users
mailing list