Re: [pmapper-users] Need help with drawing plugin
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 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
Re: [pmapper-users] Need help with drawing plugin
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
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 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
Re: [pmapper-users] Need help with drawing plugin
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] Select with polygon
Il 29/03/2012 15:27, Juliano C. P. Agostinho ha scritto: Hi, The select function in toolbar only work using a box method, is it possible select using a circle or polygon ? Hi Juliano, at the moment is not possible... only box method... W Thank you -- 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 -- Walter Lorenzetti phD email: lorenze...@gis3w.it skype: aiki74 Cell: (+39) 347-6597931 Tel+Fax: (+39) 0588 85021 Viale Giuseppe Verdi n. 24, 51016 Montecatini Terme,Pistoia P.IVA 01686280478 Italy -- 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