Really I don't understand. With the link you post, when I use drawing, I 
can see :
- 1 category named "Desenhos"
- 1 layer named "Poligono"
- 1 layer named "Ponto"

So for me there are 2 layers. This is the default behaviour.

If you want 2 categories, with only 1 layer in each : change the 
beginning of plugins/drawing/drawing.js like that :
...
     layer_def_point: '{"type":"tplMapFile", "tplname": "drawPoint", 
"layername": "drawingPoint", "category": "name_ok_category_for_points"}',
....
     layer_def_polygon: '{"type":"tplMapFile", "tplname": "drawPolygon", 
"layername": "drawingPolygon", "category": "name_ok_category_for_polygons"}'
....

Le 30/03/2012 16:12, maniac a écrit :
> Hello,
>
> thanks for answer about location where can I find data about polygons
> currently on the map. I'll check it this week.
>
> But another part of question is currently more important. It is how to make
> two layers (or groups) and be able to show and hide it. One layer must be
> for polygons, other for points.
> Btw, the link I pasted in the one of previous post is just the exapmle how I
> need to have it work. If you draw polygon on that site
> (http://www.sig.camacari.ba.gov.br/urbam/map_default.phtml), u'll see
> appeared new checkbox named "Desenhos" with option to disable drawed
> objects.
>
> I really need help to impmlement this, so please help me, or give me any
> instructions where to start.
>
> Thanks a lot for help.
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Need-help-with-drawing-plugin-tp3869433p3870920.html
> Sent from the pmapper-users -- p.mapper users mailing list mailing list 
> archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
>

-- 


Thomas RAFFIN
Chef de Projet Internet
traf...@sirap.fr <mailto:traf...@sirap.fr>      Sirap <http://sirap.fr>         
Tel 
: 04 75 72 84 10
Fax : 04 75 70 07 98
Rue Paul Louis Héroult - BP 253
26106 Romans cedex

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to