[Cartoweb-users] show crosshair
victor valencia
vhva1976 at yahoo.es
Wed Aug 6 12:49:16 EDT 2008
Hi:
The Navigation plugin does not draw the symbol when recentering, but I can see it with next URL
http://localhost/cartoweb3/htdocs/labsigUVG.php?recenter_x=812834&recenter_y=1743592&recenter_scale=500000&show_crosshair=1
this is in my client_conf/location.ini
---
; if true, shows recenter on (x,y) form
recenterActive = true
crosshairSymbol = 1
crosshairSymbolSize = 10
crosshairSymbolColor = 100, 100, 100
---
What should i do to get the symbol drawn
Víctor Valencia
Sevilla
----- Mensaje original ----
De: "cartoweb-users-request at lists.maptools.org" <cartoweb-users-request at lists.maptools.org>
Para: cartoweb-users at lists.maptools.org
Enviado: miércoles, 9 de julio, 2008 10:15:52
Asunto: Cartoweb-users Digest, Vol 39, Issue 13
Send Cartoweb-users mailing list submissions to
cartoweb-users at lists.maptools.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.maptools.org/mailman/listinfo/cartoweb-users
or, via email, send a message with subject or body 'help' to
cartoweb-users-request at lists.maptools.org
You can reach the person managing the list at
cartoweb-users-owner at lists.maptools.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cartoweb-users digest..."
Today's Topics:
1. Re: configure the header column in the edit table
(Oliver Christen)
2. Re: Recenter Plugin problem (mannobug mannobug)
----------------------------------------------------------------------
Message: 1
Date: Wed, 9 Jul 2008 09:35:39 +0200
From: "Oliver Christen" <oliver.christen at camptocamp.com>
Subject: Re: [Cartoweb-users] configure the header column in the edit
table
To: "Giovanni Virdis" <g.virdis at riteco.it>,
<cartoweb-users at lists.maptools.org>
Message-ID: <82F7D5903DF84F4A810A1F0B2D6038CF at maunakea>
Content-Type: text/plain; charset="iso-8859-1"
Hi
you can use the translation system to replace the column header by your own strings.
http://www.cartoweb.org/doc_head/docbook/xhtml/user.i18n.html
regards
Oliver
----- Original Message -----
From: Giovanni Virdis
To: cartoweb-users at lists.maptools.org
Sent: Wednesday, July 09, 2008 9:33 AM
Subject: [Cartoweb-users] configure the header column in the edit table
Hi,
How I can set the description of the header colum in the edit table? I must configure in map file?
Now in the header column there are the name of the table's field
------------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080709/d1eb7151/attachment-0001.html
------------------------------
Message: 2
Date: Wed, 9 Jul 2008 10:15:28 +0200
From: "mannobug mannobug" <mannobug at gmail.com>
Subject: Re: [Cartoweb-users] Recenter Plugin problem
To: "Oliver Christen" <oliver.christen at camptocamp.com>
Cc: cartoweb-users at lists.maptools.org
Message-ID:
<2e2d7aaa0807090115l5c8e8c50od8462bd6712d5b4 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Oliver,
now everything is ok :-)
many thanks to your patience.
Regards
Emmanuele
2008/7/9 Oliver Christen <oliver.christen at camptocamp.com>:
> Hi
>
> the strange behaviour you are experimenting is usualy caused by a bug in
> file carto.js, function setActiveToolButton.
> replace
> if(elt == null) return;
> by
> if(elt == null) continue;
>
> regards
> Oliver
>
> ----- Original Message -----
> *From:* mannobug mannobug <mannobug at gmail.com>
> *To:* Oliver Christen <oliver.christen at camptocamp.com>
> *Cc:* cartoweb-users at lists.maptools.org
> *Sent:* Wednesday, July 09, 2008 9:12 AM
> *Subject:* Re: [Cartoweb-users] Recenter Plugin problem
>
> Hi Oliver...
> it works :-) everything was ok since yesterday and i don't know why i had
> getLayerByName. Every time i did clean before and after installation....
> by the way :-)
> But now it's sound like with outline enabled i cannot use query_by_bbox
> tool and geoloc plugin to ask coordiantes. When i click over the map with
> query tool it zoom-in in a strange way :-O.
>
> I try to search what can be.
> keep in touch and thanks a lot.
> Emmanuele
>
>
> 2008/7/9 Oliver Christen <oliver.christen at camptocamp.com>:
>
>> Hi
>>
>> if you have a "getLayerByName failed" error, it means the name of the
>> layers in your mpafile and the names you specified in your outline.ini are
>> not the same.
>>
>> dont forget to do a cw3setup.php --clean followed by a ?reset_session in
>> the url so your change are effectively taken into account.
>>
>> and verify outline is also enabled on server side
>> (/server_conf/*yourproject*/*yourproject*.ini).
>>
>> regards
>> Oliver
>>
>>
>> ----- Original Message -----
>> *From:* mannobug mannobug <mannobug at gmail.com>
>> *To:* Oliver Christen <oliver.christen at camptocamp.com>
>> *Cc:* cartoweb-users at lists.maptools.org
>> *Sent:* Tuesday, July 08, 2008 5:13 PM
>> *Subject:* Re: [Cartoweb-users] Recenter Plugin problem
>>
>> Hi Oliver...no way!
>> So I try to explain what i did in this time.
>> I'm not abel to draw a point this is the real problem.
>> So i tried to:
>> 1. enable outline plugin in client;
>> 2. add "cartoweb_point_outline" etc to myProject.map at the end;
>> 3. create outline.ini with thi information:
>> ; outline layer for points
>> pointLayer = cartoweb_point_outline
>>
>> ; if not set, no symbols will be returned to the client.
>> ; (default not set)
>> pointSymbols = full_triangle, circle
>> pointSymbols.labels = triangle, point
>>
>> ; 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
>>
>> At this poit an error (getLayerByName failed) occour in serverside class
>> of outline plugin.
>>
>> I try all the things that you said to me but nothing work.
>> I really don't know what can be! :-S
>> Thank you.
>> Emmanuele
>>
>> 2008/7/8 Oliver Christen <oliver.christen at camptocamp.com>:
>>
>>> first, verify you can draw a point with outline using the drawPoint
>>> tool.
>>>
>>> then maybe specify a size for your symbol by adding a crosshairSymbolSize
>>> = somevalue in your location.ini in client_conf/
>>>
>>> for info, symbol 1 is the second symbol in your symbols.txt, the first
>>> being 0.
>>>
>>> you can also try to do it directly via the url:
>>> demoCW3.php?recenter_x=290000&recenter_y=5140000&recenter_scale=500000&show_crosshair=1
>>> (for example)
>>>
>>> if it still doesnt work, well, Im out of idea, so you will need to try to
>>> add some debug in the code to see whats going on.
>>>
>>> regards
>>> Oliver
>>>
>>> ----- Original Message -----
>>> *From:* mannobug mannobug <mannobug at gmail.com>
>>> *To:* Oliver Christen <oliver.christen at camptocamp.com>
>>> *Cc:* cartoweb-users at lists.maptools.org
>>> *Sent:* Tuesday, July 08, 2008 2:40 PM
>>> *Subject:* Re: [Cartoweb-users] Recenter Plugin problem
>>>
>>> Hi Oliver and thanks for your reply.
>>> I just createmy location.ini under my project and fill it wiht this
>>> property:
>>>
>>> crosshairSymbol = 1
>>> crosshairSymbolColor = 0,192,0
>>>
>>> On server side in Server_conf/myProject/symbols.txt i set this symbols:
>>> SYMBOL
>>> NAME "cerchio"
>>> TYPE ellipse
>>> FILLED true
>>> POINTS 1 1 END
>>> END
>>>
>>> SYMBOL
>>> NAME 'linea'
>>> TYPE ellipse
>>> POINTS 1 1 END
>>> FILLED true
>>> END
>>>
>>> SYMBOL
>>> NAME "triangolo"
>>> TYPE VECTOR
>>> FILLED TRUE
>>> POINTS 0 1 .5 0 1 1 0 1 END
>>> END
>>>
>>> SYMBOL
>>> NAME "quadrato"
>>> TYPE VECTOR
>>> FILLED TRUE
>>> POINTS
>>> 0 0
>>> 0 0.5
>>> 0.5 0.5
>>> 0.5 0
>>> 0 0
>>> END
>>> END
>>>
>>> but still don't work. What's wrong :-S
>>> Thanks a lot.
>>> Emmanuele
>>>
>>>
>>> 2008/7/8 Oliver Christen <oliver.christen at camptocamp.com>:
>>>
>>>> Hi
>>>>
>>>> did you defined a symbol to use in your location.ini (client side)?
>>>>
>>>> crosshairSymbol =
>>>> the_symbol_id_as_defined_in_your_symbol_file_on_server_side
>>>>
>>>> http://www.cartoweb.org/doc_head/docbook/xhtml/user.location.html
>>>>
>>>> regards
>>>> Oliver
>>>>
>>>> ----- Original Message -----
>>>> *From:* mannobug mannobug <mannobug at gmail.com>
>>>> *To:* cartoweb-users at lists.maptools.org
>>>> *Sent:* Tuesday, July 08, 2008 11:34 AM
>>>> *Subject:* [Cartoweb-users] Recenter Plugin problem
>>>>
>>>> Hi all first i'd like to say sorry for my unsubscribe but something was
>>>> wrong with my mail account :-D now everything is ok.
>>>> I developed a little plugin based on
>>>> http://www.cartoweb.org/cwiki/HowToWriteaRecenterPlugin.
>>>> Everything is ok, it does recentering on selected point (with decimal
>>>> coordinates) and zooming; the problem is with the crossahir parameter I'm
>>>> not able to show nothing on my map.
>>>> My filterPostRequest function is above:
>>>> public function filterPostRequest(FilterRequestModifier $request) {
>>>>
>>>> $searchString = $request->getValue('LatLng');
>>>> if (!empty($searchString)) {
>>>> $pieces = explode(", ", $searchString);
>>>> $request->setValue('recenter_x', $pieces[1]);
>>>> $request->setValue('recenter_y', $pieces[0]);
>>>> $request->setValue('recenter_scale', '50000');
>>>> $request->setValue('recenter_doit', '1');
>>>> $request->setValue('show_crosshair', '1');
>>>> }
>>>> }
>>>>
>>>> In my client.ini i have enabled this plugin: exportPdf,exportCsv
>>>> and in server_conf this: outline, mapOverlay,exportPdf.
>>>>
>>>> I followed another discussion on this list but nothing seem to change.
>>>> any idea?
>>>> Thanks a lot
>>>> Emmanuele
>>>>
>>>> ------------------------------
>>>>
>>>> _______________________________________________
>>>> Cartoweb-users mailing list
>>>> Cartoweb-users at lists.maptools.org
>>>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080709/076a1a53/attachment.html
------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
End of Cartoweb-users Digest, Vol 39, Issue 13
**********************************************
______________________________________________
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080806/b203031f/attachment-0001.html
More information about the Cartoweb-users
mailing list