[Cartoweb-users] Outline problem
Valerio Noti
valerionoti at yahoo.it
Thu May 18 06:39:22 EDT 2006
Hello,
this is and old problem not yet solved.
Point and polygon outlines work without problem but when I use line outline
I get the following error (The problem occurs only for lines when confirm the label ok button):
After the error I pasted outline.ini, mapfile and cartoclient.tpl rows.
**********************************************....
....
Class : CartoclientException
Message : unknown selection_type: line
Backtrace:
file: 313 - C:\wamp\www\cartoweb3\client\HttpRequestHandler.php
call: DhtmlSelectionParser->getMainmapShape(Object(CartoForm),
Object(Dimension), Object(Bbox))
file: 357 - C:\wamp\www\cartoweb3\client\HttpRequestHandler.php
call: HttpRequestHandler->checkMainmapButton(Object(CartoForm))
file: 441 - C:\wamp\www\cartoweb3\client\HttpRequestHandler.php
call: HttpRequestHandler->checkClickedButtons(Object(CartoForm))
file: 843 - C:\wamp\www\cartoweb3\client\Cartoclient.php
call: HttpRequestHandler->handleHttpRequest(Object(ClientSession),
Object(CartoForm))
file: 1027 - C:\wamp\www\cartoweb3\client\Cartoclient.php
call: Cartoclient->doMain()
file: 38 - C:\wamp\www\cartoweb3\htdocs\client.php
call: Cartoclient->main()
file: 3 - C:\wamp\www\cartoweb3\htdocs\demoCW3.php
call: require_once("C:\wamp\www\cartoweb3\htdocs\client.php")
....
**********************************************...
**********************************************...
**********************************************...
this is mapfile:
....
###########
# outline #
###########
LAYER
NAME "cartoweb_point_outline"
TYPE POINT
CLASS
STYLE
SYMBOL "triangle"
COLOR 0 0 0
SIZE 12
END
STYLE
SYMBOL "triangle"
COLOR 205 0 0
SIZE 10
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 7
COLOR 0 0 0
OUTLINECOLOR 255 255 255
POSITION lc
END
END
END
LAYER
NAME "cartoweb_line_outline"
TYPE LINE
CLASS
STYLE
COLOR 0 0 0
SYMBOL "line-dashed"
SIZE 2
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 7
COLOR 0 0 0
OUTLINECOLOR 255 255 255
ANGLE auto
POSITION uc
END
END
END
LAYER
NAME "cartoweb_polygon_outline"
TYPE POLYGON
TRANSPARENCY 60
CLASS
STYLE
COLOR 255 153 0
OUTLINECOLOR 0 0 0
END
LABEL
TYPE TRUETYPE
FONT "Vera"
SIZE 7
OUTLINECOLOR 255 255 255
COLOR 0 0 0
POSITION cc
END
END
END
**********************************************...
**********************************************...
**********************************************...
this is outline.ini (client side):
; if false, will outline only one shape at a time (default true)
multipleShapes = true
;tools templating
groupPlugin = 3
labelMode = true
**********************************************...
**********************************************...
**********************************************...
this is outline.ini (server side):
; outline layer for points, if not set will use polygonLayer
pointLayer = cartoweb_point_outline
; outline layer for lines
lineLayer = cartoweb_line_outline
; outline layer for rectangles and polygons
polygonLayer = cartoweb_polygon_outline
; color of the mask, default is 255 255 255
;maskColor = 90 90 90
; ratio by which to multiply the area before returning it to the client
; (default 1.0)
areaFactor = 0.000001
; number of decimal digits wanted for area result, before returning it
; to the client
areaPrecision = 0;
**********************************************...
**********************************************...
**********************************************...
between head tags in cartoclient.tpl:
{if $outline_active|default:''}<link rel="stylesheet" type="text/css" href="{r type=css plugin=outline}outline.css{/r}" />{/if}
**********************************************...
**********************************************...
**********************************************...
and in cartoclient.tpl body:
<div id="folder5" style="font-size:12px; width:250px;">
<br />
Disegna semplici annotazioni grafiche sulla mappa per utilizzarle in fase di stampa<br><br>
<table width="100%" cellpadding="0" cellspacing="1" border="0">
<tr>
<td align="center">
{include file="toolbar.tpl" group="3"}
</td>
</tr>
</table>
{if $outline_active|default:''}
{$outline}
{/if}
</div>
**********************************************...
**********************************************...
**********************************************...
Thanks for any suggestions.
Valerio
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
More information about the Cartoweb-users
mailing list