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