Re: [pmapper-users] Need help with drawing plugin

2012-04-01 Thread maniac
Hello again,

I finally fixed my problem. I only had to insert following line inside
config_default.xml file: "".

But, I have another problem. After I close browser and open it again, the
polygons are normally shown on map, until I draw new polygon. Old polygons
(from previous session) then dissapear.

Does anyone have idea how to permanently show or hide polygons from previous
session?

Thanks for any help.

--
View this message in context: 
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Need-help-with-drawing-plugin-tp3869433p3876879.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


Re: [pmapper-users] Need help with drawing plugin

2012-03-30 Thread maniac
No we really don't understand each other :)

I gave you a link with example. It's not site I'm working on. I have
currenly only local copy of p.mapper, so I cannot give you a link.

I don't know if this functionality can be enabled somewhere or I have to
implement it myself. Excuse me about misunderstanding, my english is not
very good.

--
View this message in context: 
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Need-help-with-drawing-plugin-tp3869433p3871104.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


Re: [pmapper-users] Need help with drawing plugin

2012-03-30 Thread Thomas RAFFIN
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   Sirap  
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


Re: [pmapper-users] Need help with drawing plugin

2012-03-30 Thread maniac
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


Re: [pmapper-users] Need help with drawing plugin

2012-03-30 Thread Thomas RAFFIN
Hi,

I don't know how to check if the polygon exists : it is very difficult 
to compare 2 approximatively drawn polygons...

The list of shown polygons saved in session is available with 
$_SESSION['clientDynamicLayers']. It is use at the end of 
incphp/gloabls.php and all the code is in 
plugins/clientDynamicLayers/clientDynamicLayers.php.

The link you paste doesn't show saving in DB or edit functionalities, no?

Le 30/03/2012 09:13, maniac a écrit :
> Hello and thanks for your answer.
>
> I customized drawing plugin to save polygon in DB. And I don't know how to
> check if polygon already exist. Is list of shown polygons saved in session?
>
> The link I paste here have implemented functionalities about saving polygons
> an points in layer and have posibilities to show / hide this layers (for
> points and polygons). I want to have the same functionalities, but I need
> help how to implement it.
>
> Thanks for help.
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Need-help-with-drawing-plugin-tp3869433p3870123.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   Sirap  
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


Re: [pmapper-users] Need help with drawing plugin

2012-03-30 Thread maniac
Hello and thanks for your answer.

I customized drawing plugin to save polygon in DB. And I don't know how to
check if polygon already exist. Is list of shown polygons saved in session?

The link I paste here have implemented functionalities about saving polygons
an points in layer and have posibilities to show / hide this layers (for
points and polygons). I want to have the same functionalities, but I need
help how to implement it.

Thanks for help.

--
View this message in context: 
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Need-help-with-drawing-plugin-tp3869433p3870123.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


Re: [pmapper-users] Need help with drawing plugin

2012-03-30 Thread Thomas RAFFIN
Hi,

Where did you found polygons loaded multiple times? With 2 drawing 
polygons, in my browser console I've tested 
PM.Plugin.Drawing.tabObjects.length and I've got 2 in the link you've given.

The 2d point is working correctly, no?

There are errors with the "addButtonsToGroup" plugin.



Le 30/03/2012 01:01, maniac a écrit :
> Hello,
>
> I have recently started to working with p.mapper. But after a while I get
> into problems how to continue working with it.
>
> I tried some functionalities, especially about drawing plugin (in dialog of
> drawnig I added code to save polygon/point to database and make available
> load it again - showing it on map). The first problem appeared here, because
> one object (polygon/point) is loaded multiple times. I need to restrict it
> to be on map only once.
>
> The next thing I need to do is to create one layer for polygons and when
> drawing, append all of the polygons to it. This layer must be shown on TOC
> (on right side menu) and there must also be checkbox with use of
> enable/disable (show/hide) this layer. I also found an example of what I
> want to have implemented. It's on following link:
> http://www.sig.camacari.ba.gov.br/urbam/map_default.phtml.
>
> I hope you can help me.
>
> King Regards
>
> --
> View this message in context: 
> http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Need-help-with-drawing-plugin-tp3869433p3869433.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   Sirap  
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


[pmapper-users] Need help with drawing plugin

2012-03-29 Thread maniac
Hello,

I have recently started to working with p.mapper. But after a while I get
into problems how to continue working with it.

I tried some functionalities, especially about drawing plugin (in dialog of
drawnig I added code to save polygon/point to database and make available
load it again - showing it on map). The first problem appeared here, because
one object (polygon/point) is loaded multiple times. I need to restrict it
to be on map only once.

The next thing I need to do is to create one layer for polygons and when
drawing, append all of the polygons to it. This layer must be shown on TOC
(on right side menu) and there must also be checkbox with use of
enable/disable (show/hide) this layer. I also found an example of what I
want to have implemented. It's on following link:
http://www.sig.camacari.ba.gov.br/urbam/map_default.phtml.

I hope you can help me.

King Regards

--
View this message in context: 
http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/Need-help-with-drawing-plugin-tp3869433p3869433.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