Re: [mapguide-users] php - edit map in repository, save modifications back
Using the Maestro API you can load the MapDefinition from MapGuide, then modify this (add layer or whatever) and use the: code example: Best regards Hans Milling... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/php-edit-map-in-repository-save-modifications-back-tp5168012p5168813.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
[mapguide-users] php - edit map in repository, save modifications back
Hi, I'm getting a bit confused reading through the DevGuide (chapter 5) and code examples in the email archive. Maybe someone can just point me in the right direction. I would like to open an existing map, modify it (add an existing layer) and save it back into the repository. There is no layout, website or user activity involved. The map won't be displayed at all. Instead of adding layers through Studio/Maestro I need to automate the process (as I'm not familiar with Python but have some experience with PHP I prefer MapGuide API instead of using Maestro/Python). What I haven't figured out yet is - do I need to work with sessions? Or can I somehow open an existing map or layer directly? I would like to use MapGuide Api to insert layers into a map as it seems easier than dealing with XML. Many thanks, Rob - http://raumpatrouille3d.blogspot.ch/ -- View this message in context: http://osgeo-org.1560.x6.nabble.com/php-edit-map-in-repository-save-modifications-back-tp5168012.html Sent from the MapGuide Users mailing list archive at Nabble.com. ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users
Re: [mapguide-users] php - edit map in repository, save modifications back
Hi Rob, I'm not a great developper, but i understood with few bad experiences that with MapGuide API you can only save new resource in Session Repository not in the Library of your hard disk. You just have 3 ways : - use Maestro/Studio to add manually the layer in yours maps - Do a runtime map by php or asp .net and add the layer dynamically in your maps each time a user uses the map - Use Python in Maestro to add the layer in many maps in one time Good luck Rémy ___ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users