[ka-Map-users] RE: Best Method to Overlay User Data

Daniel.Huber at ch2m.com Daniel.Huber at ch2m.com
Mon Apr 9 16:18:41 EDT 2007


 ka-Mappers - 

I'm trying to add data to my map dynamically, based on a file that the
user will upload.  Following Lorenzo's advice, included below, I've
decided to use the PHP/MapScript methods to add a new layer to the
mapfile and then store the users information there.

Here is the problem:

 * - the example that uses these methods included with the ka-Map files
(index_overlay.html) does not work -- it balks saying "Error while
parsing the document", which is I think is the KML file but I cannot be
sure.

 * - Where should I add the code to modify the mapfile on start-up,
since this is when the user will have uploaded their data.   I've tried
adding the code to the init.php and tile.php files, but they don't do a
thing.

Thank you for any guidance you can provide on this matter -- as it's
really starting to wear me down.

Dan


-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of Lorenzo
Becchi
Sent: Wednesday, March 21, 2007 3:27 PM
To: ka-map-users at lists.maptools.org
Subject: [ka-Map-users] Best Method to Overlay User Data

>  - Add a new layer dynamically (ms_newLayerObj) and then add the users

> data to that?  I believe I will still have to ensure this layer gets 
> passed to "Save as" functions.

Hi Daniel,
I think this is the best solution.

hack print_map.php and you should get what you expect

ciao
Lorenzo
_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users



More information about the ka-Map-users mailing list