From rob at hagemann.nl Mon Mar 29 10:14:12 2004 From: rob at hagemann.nl (Rob Hageman) Date: Mon, 29 Mar 2004 10:14:12 +0200 Subject: [Mapit-de] Mapit modification Message-ID: <000001c41565$d4f431b0$0500000a@DELL> Hello, I want to create a 'mapserver' with specific 'markerdefs' from the visiting user on my website. Is it possibile to let Mapit! work with different 'markerdefs' ? Rob Hageman From frank.koormann at intevation.de Mon Mar 29 11:11:05 2004 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 29 Mar 2004 11:11:05 +0200 Subject: [Mapit-de] Mapit modification In-Reply-To: <000001c41565$d4f431b0$0500000a@DELL> References: <000001c41565$d4f431b0$0500000a@DELL> Message-ID: <20040329091105.GB26426@intevation.de> Hi Rob, * Rob Hageman [040329 10:23]: > Hello, > > I want to create a 'mapserver' with specific 'markerdefs' from the > visiting user on my website. > > Is it possibile to let Mapit! work with different 'markerdefs' ? not sure what you mean exactly. However, MapIT! provides different groups within the markerdefs and even seperate icons per entry in a group. If you want to work with seperate markerdefs files per user, it should be straight forward to overwrite the default for 'marker_locations' specified in base/mapconfig.py with a cgi parameter. Best regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From frank.koormann at intevation.de Mon Mar 29 13:18:59 2004 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 29 Mar 2004 13:18:59 +0200 Subject: [Mapit-de] Mapit modification In-Reply-To: <000101c41574$71c768a0$0500000a@DELL> References: <20040329091105.GB26426@intevation.de> <000101c41574$71c768a0$0500000a@DELL> Message-ID: <20040329111859.GA30785@intevation.de> [added list again] Hi Rob, * Rob Hageman [040329 11:58]: > Hi Frank. > > Thanks for the fast reply, you understood it correct. > I want to work with seperate markerdefs files per user, but before > making any modifications, I was wondering if Mapit is able to support > multiple users at the same time. > Next challenge is how to modify. I have markersdefs files in > userdirectories. > I have to look into python, I suppose to start in common.py > > Are there any examples of such a modification? No, I don't know of such examples. However, common.py is a good starter: Have a look at the Parameters.__init__ method which processes the cgi parameters and generates the MarkerInfo Object from mapconfig.marker_locations and other parameters. Should be sufficient to make this variable. However, this has some side restrictions: A new CGI-parameter 'marker_locations' must be processed (and MarkerInfo available) before the 'marker' parameter is processed. Should be taken some care about this. Best regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/)